Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Hibernate's core Object/Relational Mapping functionality
Java Other

This branch is 877 commits ahead, 1825 commits behind master

Failed to load latest commit information.
buildSrc [HHH-8707] Add support for oracle12c, postgresql92, postgresplus92, d…
databases HHH-7298 org.hibernate.test.dialect.functional.SQLServerDialectTest#t…
documentation buildSessionFactory() should return a sessionFactory
etc HHH-9039 Typo
gradle/wrapper HHH-8734 Update to Gradle 1.9
hibernate-c3p0 HHH-8779 corrected bundle symbolic name
hibernate-core HHH-9413 : Backport HHH-8853 to 4.2: NonBatchingBatch.addToBatch() ca…
hibernate-ehcache HHH-8779 corrected bundle symbolic name
hibernate-enhance-maven-plugin HHH-8777 corrected configurations used in pom plugin
hibernate-entitymanager HHH-9642 : Join fetch not performing join fetch for @Embeddable with @…
hibernate-envers HHH-8401 : Unit test fixes
hibernate-gradle-plugin HHH-8354 added new dirty-checking options to newly cherry-picked plugins
hibernate-infinispan
hibernate-osgi HHH-8922 ClassLoaderServiceImpl#getResources should use LinkedHashSet to
hibernate-proxool HHH-8779 corrected bundle symbolic name
hibernate-testing HHH-8923 - Reconsider closing of ServiceRegistry instances
release HHH-8335 Hibernate OSGi not included in build's /lib
.gitignore HHH-8777 dynamically generate descriptor dependencies
README.md update README
build.gradle 4.2.19.Final post-release
changelog.txt 4.2.19.Final release
gradlew HHH-8734 Update to Gradle 1.9
gradlew.bat HHH-8734 Update to Gradle 1.9
hibernate_logo.gif SVN layout migration for core/trunk
lgpl.txt SVN layout migration for core/trunk
libraries.gradle HHH-8337 Added Maven plugin to enhance Entities during build time.
settings.gradle HHH-8777 Completed implementation of Maven Enhance Plugin fixing issu…
utilities.gradle HHH-7527 Enterprise OSGi JPA support

README.md

How to build

Starting with development of version 4.0, Hibernate uses Gradle as its build tool.

This README describes some of the basics developers and contributors new to Gradle need to know to get productive quickly.

Quickstart

 git clone git://github.com/hibernate/hibernate-orm.git
 cd hibernate-orm
 ./gradlew clean build

If you are having problems with unresolved dependencies you need to configure access to the JBoss Nexus repository (see below).

Resources

General

JBoss Nexus

Gradle

Executing Tasks

Gradle uses the concept of build tasks (equivalent to Ant targets). You can get a list of available tasks via

gradle tasks 

or using gradle wrapper

./gradlew tasks

Executing Tasks Across All Modules

To execute a task across all modules, simply perform that task from the root directory. Gradle will visit each subproject and execute that task if the subproject defines it.

Executing Tasks In Specific Module

To execute a task in a specific module you can either:

  1. cd into that module directory and execute the task
  2. name the "task path". For example, in order to run the tests for the hibernate-core module from the root directory you could say gradle hibernate-core:test

Common Java related tasks

  • build - Assembles (jars) and tests this project
  • buildDependents - Assembles and tests this project and all projects that depend on it. So think of running this in hibernnate-entitymanager, Gradle would assemble and test hibernate-entitymanager as well as hibernate-envers (because envers depends on entitymanager)
  • classes - Compiles the main classes
  • testClasses - Compiles the test classes
  • jar - Generates a jar archive with all the compiled classes
  • test - Runs the tests
  • uploadArchives - Think Maven deploy
  • install - Installs the project jar to your local maven cache (aka ~/.m2/repository)
  • eclipse - Generates an Eclipse project
  • idea - Generates an IntelliJ/IDEA project.
  • clean - Cleans the build directory
Something went wrong with that request. Please try again.