Which version of hibernate support jpa 2.1?

对着背影说爱祢 提交于 2019-11-28 06:13:32
Boris Pavlović

According to Hibernate's versions list, JPA 2.1 is going to be supported by version 4.3 or by 5.0

Josh

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.

ThanksForAllTheFish

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.

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