Package org.infinispan.persistence.jpa.impl

Examples of org.infinispan.persistence.jpa.impl.EntityManagerFactoryRegistry


               .addStore(JpaStoreConfigurationBuilder.class)
                  .persistenceUnitName("org.infinispan.persistence.jpa")
                  .entityClass(KeyValueEntity.class);
      InitializationContext context = createContext(builder.build());
      context.getCache().getAdvancedCache().getComponentRegistry().getGlobalComponentRegistry()
            .registerComponent(new EntityManagerFactoryRegistry(), EntityManagerFactoryRegistry.class);
      JpaStore store = new JpaStore();
      store.init(context);
      return store;
   }
View Full Code Here


                     .entityClass(KeyValueEntity.class)
                     .storeMetadata(storeMetadata())
                     .create();
      InitializationContext context = createContext(builder.build());
      context.getCache().getAdvancedCache().getComponentRegistry().getGlobalComponentRegistry()
            .registerComponent(new EntityManagerFactoryRegistry(), EntityManagerFactoryRegistry.class);
      JpaStore store = new JpaStore();
      store.init(context);
      return store;
   }
View Full Code Here

                     .persistenceUnitName("org.infinispan.persistence.jpa")
                     .entityClass(KeyValueEntity.class)
                     .create();
      Cache cache = getCache();
      cache.getAdvancedCache().getComponentRegistry().getGlobalComponentRegistry()
            .registerComponent(new EntityManagerFactoryRegistry(), EntityManagerFactoryRegistry.class);
      store.init(new DummyInitializationContext(configuration, cache, getMarshaller(), new ByteBufferFactoryImpl(),
            new MarshalledEntryFactoryImpl(getMarshaller())));
      store.start();
      return store;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.persistence.jpa.impl.EntityManagerFactoryRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.