简体   繁体   中英

Which version of hibernate support jpa 2.1?

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?

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.

根据Hibernate的版本列表 ,JPA 2.1将受到版本4.3或5.0的支持

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM