When I change the hibernate version in my project, I get the error as in the title. I searched but I could not find any result.
Thank you for your help.
pom.xml
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>10.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.faces</artifactId>
<version>4.0.5</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>6.4.3.Final</version>
<optional>true</optional>
</dependency>
I tried 6.2.0.Final, 6.3.0.Final, 6.4.0.Final and 6.4.3.Final versions respectively with the same result. But there is no problem with 6.1.7.Final.
You are already depending on
Which includes JPA, you should use JPA classes instead of Hibernate and your problem will be solved.