At the moment Hibernate OGM can create caches but only if a default configuration is defined on the Infinispan Server. We need to provide something to allow some customization.
A few examples of what I'm thinking: {code} @Entity @CacheTemplate("transactional_confg") public class Entity { ... } {code}
or
{code} @Entity @CacheTemplate(name = "transactional_confg") public class Entity { ... } {code}
The value is what we need to pass to the method: {code} hotrodClient.administration().createCache( cacheName, cacheTemplate ); {code}
Currently we pass null, see org.hibernate.ogm.datastore.infinispanremote.impl.InfinispanRemoteDatastoreProvider#startAndValidateCaches() Tests can be run using maven or via InfinispanRemoteBackendTckHelper. |
|