Hibernate 4.3.0.Final Maven dependency

In this tutorial you will learn how to add the Hibernate 4.3.0.Final Maven dependency in a Java based project. The Hibernate 4.3 is released to support the latest JPA 2.1 specification.

Hibernate 4.3.0.Final Maven dependency

Adding Hibernate 4.3.0.Final Maven dependency in a project

How to add the Hibernate 4.3.0.Final Maven dependency in a project?

The Maven is industry standard build tool for compiling, testing, building and deploying the applications. It is very useful tool as it automatically downloads  the dependencies from the remote repositories. It resolves the dependencies automatically and you just have to specify the dependency of Hibernate 4.3.0.Final  in your project and it will download the necessary library.

If you don't have any experience with Maven then learn the Maven 3 tutorial first. Which will teach you how to develop applications using Maven build tool.

The new version of Hibernate is released which is Hibernate 4.3.0.Final final, which you can use in your project.

The Hibernate 4.3 ORM framework supports the JPA 2.1, which is part of JEE 7 specification.

Here is the dependency code you can add to your pom.xml file:


<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>4.3.0.Final</version>
</dependency>

<!-- for JPA, use hibernate-entitymanager instead of hibernate-core -->
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-entitymanager</artifactId>
    <version>4.3.0.Final</version>
</dependency>

<!-- optional -->

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-osgi</artifactId>
    <version>4.3.0.Final</version>
</dependency>
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-envers</artifactId>
    <version>4.3.0.Final</version>
</dependency>
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-c3p0</artifactId>
    <version>4.3.0.Final</version>
</dependency>
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-proxool</artifactId>
    <version>4.3.0.Final</version>
</dependency>
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-infinispan</artifactId>
    <version>4.3.0.Final</version>
</dependency>
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-ehcache</artifactId>
    <version>4.3.0.Final</version>
</dependency>

More tutorials on Hibernate: