Replies: 10 comments 16 replies
-
@gsartori Do you know of a work around for the following? Spring Boot 3.x switched to the jakarta.persistence package namespace of JakartaEE 9+, which is supported in Hibernate 6. Spring Boot 2.x uses the javax.persistence package namespace of JakartaEE 8 and earlier (JPA 2.2 and earlier) used in Hibernate 5.X. |
Beta Was this translation helpful? Give feedback.
-
Is Hibernate 6 a blocker to work on the next release of Grails? |
Beta Was this translation helpful? Give feedback.
-
Does anybody know if updating GORM 8 to Groovy 4 and Java 17/21 would be possible staying with Hibernate 5 without adopting Hibernate 6? |
Beta Was this translation helpful? Give feedback.
-
Hibernate started to support JPA 3.0 in version 5.5. All Hibernate artifacts that support the new JPA 3.0 APIs have the suffix “-jakarta” in their name.
https://in.relation.to/2021/06/04/hibernate-is-jakarta-jpa-2/ https://in.relation.to/2021/06/02/hibernate-orm-550-final-release/ |
Beta Was this translation helpful? Give feedback.
-
5.6.15 I think should be the initial version of hibernate to chase. Its the latest and we are using it fine with GORM 7 and 8 ( v8 as far as I know) ![]() |
Beta Was this translation helpful? Give feedback.
-
I think this really undersells the deep and fundamental advantages that 6/7 offer over 5. Hibernate 6 involved a huge amount of careful rethinking and re-engineering. There's almost no subsystem of the whole sprawling codebase which isn't now more robust and more powerful. The reimplementation of HQL is alone enough reason to upgrade. |
Beta Was this translation helpful? Give feedback.
-
The latest conversations have been for development to begin around org.hibernate:hibernate-core-jakarta:5.6.15.Final and see how well it will play with Spring Framework 6.1.11 and Spring Boot 3.3.1 within GORM for Grails 7. Whatever functions and is the simplest path is likely what will ship in with Grails 7. |
Beta Was this translation helpful? Give feedback.
-
I created a task and added to the project board. |
Beta Was this translation helpful? Give feedback.
-
I think Hibernate 6 should be skipped completely and and the next Hibernate upgrade target should be Hibernate 7.0. I imagine by the time the upgrade is done, 7 will be released. The update can be done independently of grails-core. |
Beta Was this translation helpful? Give feedback.
-
grails-data-hibernate6 work has started: https://github.com/grails/grails-data-hibernate6/branches - see development branches grails-data-hibernate5 is still seeing material changes: https://github.com/grails/grails-data-hibernate5/commits/9.0.x/ hibernate-core-jakarta:5.6.15.Final support in Spring Boot and Spring Framework: Spring Boot 3.5.x, like 3.4.x, uses Jakarta persistence 3.1. 3.5.x will be the May 2025 release which should become Grails 7.1.x and Spring will provide OSS support until May 2026. Spring Boot 3.5.x spring-boot-dependencies points to hibernate 6.6.x: https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/3.5.0-M2 https://hibernate.org/orm/releases/5.6/ Spring Boot 4.0.x with Spring Framework 7.0.x jumps to Jakarta persistence 3.2, which is the version for Jakarta EE 11: https://jakarta.ee/specifications/persistence/. This will be the Nov 2025 Spring Boot release and will likely be the foundation for Grails 8.0.x. Given this and how far grails-data-hibernate6 has to go, grails-data-hibernate5 will be around for a while and then there will be a gradual transition to hibernate6 before we stop hibernate5 development all together. hibernate5 will work with new Grails releases for a minimum of 15 months (May 2026) and if it works with Spring Boot 4.0.x with Spring Framework 7.0.x, then it will work with new Grails releases for some period of years since Spring sticks with an EE release (or two) across major versions. https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#javajakarta-ee-versions Jakarta EE 11 was released June/July 2024 and Spring Framework 7.0.0 will be the Jakarta EE 11 release in Nov 2025. Jakarta EE 12 is targeting June/July 2026, so Spring Framework 8.0.0 (Jakarta EE 12), I guess, would be targeting Nov 2027. |
Beta Was this translation helpful? Give feedback.
-
Hibernate 6 improves performances so it’s worth to consider moving ahead and supporting it. At the moment though we should consider the priority on security issues.
Databases are consolidated technologies, having the latest ORM is something that could wait.
Having the latest web framework cannot.
Beta Was this translation helpful? Give feedback.
All reactions