【问题标题】:Hibernate confusion. What are the differences between ga, GA and Final Releases? Compatibility? Repository?休眠混乱。 GA、GA 和最终版本之间有什么区别?兼容性?存储库?
【发布时间】:2011-03-20 07:21:45
【问题描述】:

谁能解释一下:
1。 ga、GA 和 Final 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>

【问题讨论】:

    标签: java hibernate maven-2 compatibility


    【解决方案1】:

    ga、GA 和 Final Hibernate 版本之间的区别?

    Final 是“新的”JBoss convention 并取代了旧的 GA(General Availability)约定。

    我应该使用 maven 存储库还是 jboss nexus 存储库?

    central 存储库中可能不提供 JBoss 工件的终极版本。如果您想使用终极版本(例如 Hibernate 3.5.3-Final),请使用 JBoss Nexus repository

    <repositories>
      <repository>
        <id>jboss-public-repository-group</id>
        <name>JBoss Public Repository Group</name>
        <url>https://repository.jboss.org/nexus/content/groups/public</url>
      </repository>
    </repositories>
    

    为什么最新的compatibility matrix 没有列出高于 3.2.6GA 的任何内容?

    嗯,对于 3.5 之前的版本,可以

    从 3.5.x 版本开始,不再需要兼容性矩阵,因为 Hibernate Core、Hibernate Annotations 和 Hibernate EntityManager 是一起发布的。

    我正在使用以下版本,但我很难确定是否应该升级:

    如果您想使用 Hibernate Entity Manager 的终极 JPA 1.0 版本,只需声明以下内容:

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-entitymanager</artifactId>
        <version>3.4.O.GA</version>
    </dependency>
    

    而且你会传递地获得其他工件。

    【讨论】:

      猜你喜欢
      • 2020-02-18
      • 1970-01-01
      • 2011-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多