Which version of hibernate support jpa 2.1?

2019-01-17 09:57发布

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?

3条回答
冷血范
2楼-- · 2019-01-17 10:24

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.

查看更多
再贱就再见
3楼-- · 2019-01-17 10:25

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.

查看更多
乱世女痞
4楼-- · 2019-01-17 10:40

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

查看更多
登录 后发表回答