In HibernateOgmPersistence#enforceOgmConfig() we set the deprecated property AvailableSettings.IDENTIFIER_GENERATOR_STRATEGY_PROVIDER to configure a custom id generator provider when working with JPA.
The deprecation warning mentions an alternative way for doing this as of ORM 4.1 via the service registry. Once we know which service is the right one we should make use of this to configure our custom generators.
Note that two different ways are used to make the custom OGM generators work as of OGM-498: the aforementioned property for JPA and a custom MutableIdentifierGeneratorFactory when using the classic API. It seems desirable to have one unified way for this (provided that's possible from ORMs perspective which I'm not entirely sure about).
|