java Hibernate混乱。ga、ga和最终版本之间有什么区别?兼容性?存储库?
谁能解释一下:
1。ga、ga和最终Hibernate版本之间的区别是什么?
2。我应该使用maven存储库还是jboss nexus存储库?
3。为什么最新的兼容性矩阵(http://community.jboss.org/wiki/HibernateCompatibilityMatrix)没有列出高于3.2.6GA的内容
我正在使用以下版本,我最难弄清楚是否应该升级:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.6.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.3.1.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-tools</artifactId>
<version>3.2.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>3.0.0.ga</version>
</dependency>
# 1 楼答案
最后一个是“新的”JBoss convention并取代了旧的GA(用于通用性)惯例
JBoss工件的最终版本可能在中央存储库中不可用。如果您想使用最终版本(例如Hibernate 3.5.3-Final),请使用JBoss Nexus repository
嗯,对于3.5之前的版本,确实如此
从3.5版开始。在x版本中,由于Hibernate Core、Hibernate Annotations和Hibernate EntityManager一起发布,因此不再需要兼容性矩阵
如果您想使用Hibernate Entity Manager的终极JPA 1.0版本,只需声明以下内容:
你会通过传递得到其他工件