Which version of hibernate support jpa 2.1?

妖精的绣舞 提交于 2019-11-27 01:14:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!