Currently there is the need for some volatile variables in OGM identity generator implementations as we can access the grid dialect only lazily upon the first value retrieval rather than the initialization phase.
For that purpose there should be an optional generator contract similar to Configurable which passes in the GridDialect instead of the ORM Dialect which is not useful for our purposes.
This requires a custom IdentifierGeneratorFactory which we cannot use consistently atm. as there is a default generator factory hard-wired in Configuration which we cannot replace from within OGM.
|