Phil
Phil

Reputation: 50396

Hibernate version jars, maven, what should go together?

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>

Upvotes: 3

Views: 877

Answers (1)

dogbane
dogbane

Reputation: 274630

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.

Upvotes: 3

Related Questions