So the behavior would be roughly like this
hashmap
hibernate.ogm.datastore.provider = map
Infinispan
Either:
-
No property, just the presence of the provider in the classpath discovered by reflection and that no other is.
-
make hibernate.ogm.infinispan.configuration_resource_name mandatory (it's defaulted today) unless hibernate.ogm.infinispan.cachemanager_jndi_name
EhCache
Either:
-
No property, just the presence of the provider in the classpath discovered by reflection and that no other is.
-
make hibernate.ogm.ehcache.configuration_resource_name mandatory (it's defaulted today)
MongoDB
Rely on the presence of hibernate.ogm.datastore.database and the fact that the mongodb provider is in the classpath and no other is
Neo4J
Rely on the presence of hibernate.ogm.neo4j.database_path
MongoDB
Rely on the presence of hibernate.ogm.datastore.database and the fact that the couchdb provider is in the classpath and no other is
Other
How to discover non sanctioned datastore providers? We don't have a serviceloader concept today. I guess mandate hibernate.ogm.datastore.provider
Multiple datastore providers in the classpath
Detect them and force the use of hibernate.ogm.neo4j.database_path
|