问题
Currently I am using JPA 2.0 with hibernate 3.6 . I tried to search but couldn't find, can anyone list out JPA 2.1 is supported by which versions of hibernate?
回答1:
According to Hibernate's versions list, JPA 2.1 is going to be supported by version 4.3 or by 5.0
回答2:
Hibernate 4.3.0.Final (Dec. 16, 2013) is the first production ready release to support jpa 2.1.
See: http://in.relation.to/Bloggers/HibernateORM430FinalRelease
The main focus of 4.3 was JPA 2.1 support, so much of the work these past few months focused on new JPA 2.1 features.
回答3:
Boris is right though you can try using,
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
in your pom.xml switching to the Hibernate 4.3.x or Hibernate 5.x.
来源:https://stackoverflow.com/questions/14558931/which-version-of-hibernate-support-jpa-2-1