Hibernate version of the cans, maven, what should go together?

It's hard for me to figure out which versions of the jar should go together for hibernation.

I have a set of sleeping maven versions that work together, but I don’t know why, how can I determine which versions work with other versions?

I also want to update my sleep mode, but I don’t know what version numbers I need to insert, or if I need others.

I currently 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>
+3
source share
1 answer
Good question. This process is unnecessarily complicated. See the Compatibility Matrix to find out which library versions you need.

In addition, from 3.5.x, Annotations and Hibernate EntityManager are part of the Hibernate Core .

+3

All Articles