Examples of JpaStoreConfiguration


Examples of org.infinispan.persistence.jpa.configuration.JpaStoreConfiguration

        .entityClass(User.class).build();
   
   
    StoreConfiguration storeConfiguration = cacheConfig.persistence().stores().get(0);
    assertTrue(storeConfiguration instanceof JpaStoreConfiguration);
    JpaStoreConfiguration jpaCacheLoaderConfig = (JpaStoreConfiguration) storeConfiguration;
    assertEquals(PERSISTENCE_UNIT_NAME, jpaCacheLoaderConfig.persistenceUnitName());
    assertEquals(User.class, jpaCacheLoaderConfig.entityClass());

    EmbeddedCacheManager cacheManager = new DefaultCacheManager(globalConfig);

    cacheManager.defineConfiguration("userCache", cacheConfig);
View Full Code Here

Examples of org.infinispan.persistence.jpa.configuration.JpaStoreConfiguration

  protected void validateConfig(Cache<VehicleId, Vehicle> vehicleCache) {
     StoreConfiguration config = vehicleCache.getCacheConfiguration().persistence().stores().get(0);
    
     assertTrue(config instanceof JpaStoreConfiguration);
      JpaStoreConfiguration jpaConfig = (JpaStoreConfiguration) config;
      assertEquals(1, jpaConfig.batchSize());
      assertEquals(Vehicle.class, jpaConfig.entityClass());
      assertEquals(PERSISTENCE_UNIT_NAME, jpaConfig.persistenceUnitName());
  }
View Full Code Here

Examples of org.infinispan.persistence.jpa.configuration.JpaStoreConfiguration

   }

   @Override
   protected AdvancedLoadWriteStore createStore() throws Exception {
      store = new JpaStore();
      JpaStoreConfiguration configuration = TestCacheManagerFactory
            .getDefaultCacheConfiguration(false)
               .persistence()
                  .addStore(JpaStoreConfigurationBuilder.class)
                     .persistenceUnitName("org.infinispan.persistence.jpa")
                     .entityClass(KeyValueEntity.class)
View Full Code Here

Examples of org.infinispan.persistence.jpa.configuration.JpaStoreConfiguration

            .entityClass(User.class).build();


      StoreConfiguration storeConfiguration = cacheConfig.persistence().stores().get(0);
      assertTrue(storeConfiguration instanceof JpaStoreConfiguration);
      JpaStoreConfiguration jpaCacheLoaderConfig = (JpaStoreConfiguration) storeConfiguration;
      assertEquals(PERSISTENCE_UNIT_NAME, jpaCacheLoaderConfig.persistenceUnitName());
      assertEquals(User.class, jpaCacheLoaderConfig.entityClass());

      EmbeddedCacheManager cacheManager = new DefaultCacheManager(globalConfig);

      cacheManager.defineConfiguration("userCache", cacheConfig);
View Full Code Here

Examples of org.infinispan.persistence.jpa.configuration.JpaStoreConfiguration

   protected void validateConfig(Cache<VehicleId, Vehicle> vehicleCache) {
      StoreConfiguration config = vehicleCache.getCacheConfiguration().persistence().stores().get(0);

      assertTrue(config instanceof JpaStoreConfiguration);
      JpaStoreConfiguration jpaConfig = (JpaStoreConfiguration) config;
      assertEquals(1, jpaConfig.batchSize());
      assertEquals(Vehicle.class, jpaConfig.entityClass());
      assertEquals(PERSISTENCE_UNIT_NAME, jpaConfig.persistenceUnitName());
   }
View Full Code Here

Examples of org.infinispan.persistence.jpa.configuration.JpaStoreConfiguration

   }

   @Override
   protected AdvancedLoadWriteStore createStore() throws Exception {
      store = new JpaStore();
      JpaStoreConfiguration configuration = TestCacheManagerFactory
            .getDefaultCacheConfiguration(false)
               .persistence()
                  .addStore(JpaStoreConfigurationBuilder.class)
                     .persistenceUnitName("org.infinispan.persistence.jpa")
                     .entityClass(KeyValueEntity.class)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.