matrei opened a new pull request, #16121: URL: https://github.com/apache/grails-core/pull/16121
Fixes compilation failures when `@ManagedEntity` is used on a Grails domain class. `HibernateEntityTransformation` and `GormEntityTransformation` were sharing the same `ClassNode` metadata key for their “transformation applied” markers. The Hibernate transformation overwrote GORM’s marker after invoking it, allowing GORM transformation to run again. Under Grails 8/Groovy 5, the second pass could fail in `DirtyCheckingTransformer` while collecting getter/setter pairs. Hibernate transformations now use a dedicated metadata marker, preserving GORM’s marker and making the transformations idempotent. Changes - Added a Hibernate-specific transformation marker for Hibernate 5. - Added the same fix for Hibernate 7. - Verified compilation of the grails-test-examples-app1 reproducer. - Verified the Hibernate 5 and Hibernate 7 transformation tests. Closes #16107 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
