Few points:
-
As discussed with Gunnar Morling, a centralized OgmService (ala EnversService) makes the most sense for handling enabled/disabled and any centralized config processing.
-
Make SessionFactoryBuilder pluggable. This piece (alone really) allows OGM to be bootstrapped via the same bootstrap API calls as ORM. Add a SessionFactoryBuilder#unwrap method.
-
Need to develop a means for providing SessionFactoryServiceRegistry customization. This is beyond the Integrator use-case which simply allows configuring existing SessionFactoryServiceRegistry services. Here we need allowing to override or add additional SessionFactoryServiceRegistry services. Consider a SessionFactoryServiceContributor
-
Need to account for "Hibernate Search properties". Still need to understand this use-case a little bit better.
Gunnar Morling Anything I missed from our discussion?
|