我很难理解哪些 jar 版本应该与 hibernate 一起使用。
我有一组可以一起工作的 hibernate 版本 Maven 东西,但我不知道为什么,我怎样才能知道哪些版本与其他版本一起工作?
我也想升级我的休眠,但我不知道要放入什么版本号或者是否需要其他版本号。
目前我有:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.3.2.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>3.1.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>3.1.1.GA</version>
</dependency>
好问题。这个过程不必要地复杂。看看兼容性矩阵 http://community.jboss.org/wiki/HibernateCompatibilityMatrix找出您需要的库的版本。
另外,从 3.5.x 开始,注解和 Hibernate EntityManager 是 Hibernate Core 的一部分 http://in.relation.to/Bloggers/ClarificationAboutAnnotationsAndEntityManager.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)