The new value generators (
HHH-2907
) work only if hibernate.id.new_generator_mappings is true. Use my demo as a test case:
https://github.com/brmeyer/HibernateDemos/tree/master/ValueGeneration
Comment out the "USE_NEW_ID_GENERATOR_MAPPINGS" line in ValueGenerationDemo.
I'm seeing some really weird symptoms when that's disabled. On insert, only the db-generated default (@Generated) worked. All in-memory generators failed. On update, everything worked.
|