org.hibernate.cache.jcache.ConfigSettings Java Examples

The following examples show how to use org.hibernate.cache.jcache.ConfigSettings. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HibernateJCacheManagerBinder.java    From micronaut-sql with Apache License 2.0 5 votes vote down vote up
@Override
public JpaConfiguration onCreated(BeanCreatedEvent<JpaConfiguration> event) {
    JpaConfiguration jpaConfiguration = event.getBean();
    Map<String, Object> jpaProperties = jpaConfiguration.getProperties();
    jpaProperties.put(ConfigSettings.CACHE_MANAGER, cacheManager);
    return jpaConfiguration;
}
 
Example #2
Source File: CacheConfiguration.java    From java-microservices-examples with Apache License 2.0 4 votes vote down vote up
@Bean
public HibernatePropertiesCustomizer hibernatePropertiesCustomizer(javax.cache.CacheManager cacheManager) {
    return hibernateProperties -> hibernateProperties.put(ConfigSettings.CACHE_MANAGER, cacheManager);
}
 
Example #3
Source File: CacheConfiguration.java    From jhipster-online with Apache License 2.0 4 votes vote down vote up
@Bean
public HibernatePropertiesCustomizer hibernatePropertiesCustomizer(javax.cache.CacheManager cacheManager) {
    return hibernateProperties -> hibernateProperties.put(ConfigSettings.CACHE_MANAGER, cacheManager);
}