Red Hat

Getting started with Hibernate ORM

Getting started with Hibernate ORM

This page lists just the basic information needed to get up and running with Hibernate ORM 4.3. More thorough information is presented in the Getting Started Guide in the documentation.

System Requirements

Java 6 or higher (building Hibernate from source requires JDK 7 due to a bug in the JDK 6 compiler).

Dependency Management

It is highly recommended to consume Hibernate ORM artifacts through a dependency management tool. The artifacts can be found in Maven’s central repository but are released first in the JBoss maven repository. Snapshots are only pushed to the JBoss snapshot repository, so if you want to use SNAPSHOT versions be sure to add the JBoss snapshot repository properly according to your build tool of choice.

The main Hibernate ORM artifact is named hibernate-core. If you wish to use JPA support, you would instead name hibernate-entitymanager.

There are also a number of optional artifacts based on what specific features you wich to use. These are discussed in the Getting Started Guide.

To use Hibernate ORM in your own project you just need to name a dependency on it in your project.

From Maven
<dependency>
   <groupId>org.hibernate</groupId>
   <artifactId>hibernate-core</artifactId>
   <version>4.3.5.Final</version>
</dependency>
From Gradle
org.hibernate:hibernate-core:4.3.5.Final
back to top