休眠版本的jar,maven,应该一起使用吗? [英] Hibernate version jars, maven, what should go together?
问题描述
我很难理解哪些版本的jar可以一起进入休眠状态.
我有一组休眠版本,它们可以协同工作,但是我不知道为什么,如何确定哪些版本可以与其他版本一起使用?
我也想升级休眠模式,但是我不知道要放入哪个版本号,或者我是否需要其他版本号.
目前,我有:
< dependency>< groupId> org.hibernate</groupId>< artifactId>休眠核心</artifactId>< version> 3.3.2.GA< version></dependency><依赖关系>< groupId> org.hibernate</groupId>< artifactId>休眠实体管理器</artifactId>< version> 3.4.0.GA</version></dependency><依赖关系>< groupId> org.hibernate</groupId>< artifactId>休眠验证器</artifactId>< version> 3.1.0.GA</version></dependency><依赖关系>< groupId> org.hibernate</groupId>< artifactId>休眠注释</artifactId>< version> 3.4.0.GA</version></dependency><依赖关系>< groupId> org.hibernate</groupId>< artifactId>休眠搜索</artifactId>< version> 3.1.1.GA< version></dependency>
好问题.这个过程不必要地复杂.查看兼容性矩阵,以了解所需的库版本.
此外,从3.5.x开始,注释和Hibernate EntityManager也是Hibernate Core的一部分./p>
I have trouble understanding what jar versions should go together for hibernate.
I have a set of hibernate versions maven things that work together, but I don't know why, how can I work out what versions work with what other versions?
Also I want to upgrade my hibernate, but I don't know what version numbers to put in or if I require the other ones.
Currently I have:
<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>
Good question. This process is unnecessarily complicated. Take a look at the Compatibility Matrix to find out which versions of the libraries you need.
Also, from 3.5.x, Annotations and Hibernate EntityManager are part of Hibernate Core.
这篇关于休眠版本的jar,maven,应该一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!