| 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:
@Entity
@CacheTemplate("transactional_confg")
public class Entity {
...
}
or
@Entity
@CacheTemplate(name = "transactional_confg")
public class Entity {
...
}
The value is what we need to pass to the method:
hotrodClient.administration().createCache( cacheName, cacheTemplate );
Currently we pass null, see org.hibernate.ogm.datastore.infinispanremote.impl.InfinispanRemoteDatastoreProvider#startAndValidateCaches() |