I am trying to use Hibernate Core 6.x with Spring Boot / Spring Data JPA 2.7.x project, but it's not able to pick up Hibernate 6.x classes.
On moving to 6.x, I see only one implementation.
What's going on, I have no idea. Can some one pitch in and help resolve this issue.
Why I want 6.x -> See if RIGHT JOIN work in 6.x. Even other wise I see it's going to be a good task to figure out and make this combo work.
CodePudding user response:
Hibernate 6 uses the JPA version (JPA 3) that uses the jakarta.persistence
package names introduced in JakartaEE 9. Spring Boot still uses the javax.*
package namespace of JakartaEE 8 and earlier (JPA 2.2 and earlier), and thus only supports Hibernate 5.x (for Spring Boot 2.7, Hibernate 5.6.x is the default).
You will need to wait for Spring Boot 3, which switches to the jakarta.*
packages of JakartaEE 9 , before you can use Hibernate 6. Until that time, you'll need to use Hibernate 5.6.