The abstraction between Hibernate OGM and Infinispan is not done yet even though some stuffs have been put in place for that.
You will want to look at:
- GridMetadataManager / GridMetadataManagerHelper (which depends on Infinispan today)
To abstract it, you will need to make sure that:
- all Hibernate OGM access to Infinispan go via the Map API
- have an abstraction that exposes a Map but stores data in your alternative Key/Value pair solution structure
- every specific call to non Map APIs should be abstracted in the GridDialect
- GridMetadataManager should delegate the bootstrapping to some kind of GridConnectionProvider