The GitHub Actions job "Groovy Snapshot Canary Build" on grails-core.git/fix/hibernate7-native-id-generator-sequences-8.0.x has failed. Run started by GitHub user borinquenkid (triggered by borinquenkid).
Head commit for run: ce72ecc8482851626e1b7d2765a2e1470bc1eb39 / Walter Duque de Estrada <[email protected]> fix: create the sequences of the default native id generator on sequence-based databases GrailsNativeGenerator only called NativeGenerator.initialize(), which picks the delegate for the dialect. On a dialect whose native strategy is a sequence (PostgreSQL, Oracle) the delegate is a SequenceStyleGenerator that was never configured and never registered its sequence with the schema export, so dbCreate create-drop created the tables but no sequences and every save failed with 'Identifier generator (SequenceStyleGenerator) was not properly initialized'. H2 and MySQL use IDENTITY, which hid it. Hibernate runs initialize, configure, registerExportables and initialize(SqlStringGenerationContext) on a NativeGenerator; Grails builds the generator itself, so the constructor now runs all four, with the default @NativeGenerator annotation that configure() reads. The constructor also no longer swallows exceptions: a native generator that cannot be set up now stops the application at startup instead of failing later on the first save. The reflective 'not properly initialized' guard in generate() existed only to report that late failure and is removed. Fixes #16561 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Report URL: https://github.com/apache/grails-core/actions/runs/38088120265 With regards, GitHub Actions via GitBox
