有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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) 个答案

  1. # 1 楼答案

    The difference between ga, GA and Final Hibernate releases?

    最后一个是“新的”JBoss convention并取代了旧的GA(用于通用性)惯例

    Should I use the maven repository or the jboss nexus repository?

    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>
    

    Why does the latest compatibility matrix not list anything higher than 3.2.6GA?

    嗯,对于3.5之前的版本,确实如此

    从3.5版开始。在x版本中,由于Hibernate Core、Hibernate Annotations和Hibernate EntityManager一起发布,因此不再需要兼容性矩阵

    I'm using the following versions and I'm having the hardest time trying to figure out if I should upgrade:

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

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

    你会通过传递得到其他工件