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.