Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Hibernate's core Object/Relational Mapping functionality

Octocat-spinner-32 documentation HHH-8956 - TLC for annotation pre-processor + document AccessType as … April 02, 2014
Octocat-spinner-32 etc HHH-9039 Typo March 12, 2014
Octocat-spinner-32 gradle HHH-8773 - Remove cleaning as release task dep January 22, 2014
Octocat-spinner-32 hibernate-c3p0 FailureExpectedWithNewMetamodel cleanup March 27, 2014
Octocat-spinner-32 hibernate-core HHH-7490 : Misc bugfixes and added @FailureExpectedWithNewMetamodel t… April 11, 2014
Octocat-spinner-32 hibernate-ehcache FailureExpectedWithNewMetamodel cleanup March 27, 2014
Octocat-spinner-32 hibernate-entitymanager HHH-4700 - ClassCastException with parameter in CaseNode.getFirstThen… April 03, 2014
Octocat-spinner-32 hibernate-envers HHH-7490 : Misc bugfixes and added @FailureExpectedWithNewMetamodel t… April 11, 2014
Octocat-spinner-32 hibernate-hikaricp HHH-8869 upgraded to HikariCP 1.3.5, replaced deprecated property April 08, 2014
Octocat-spinner-32 hibernate-infinispan HHH-9094 update hibernate-infinispan for metamodel March 28, 2014
Octocat-spinner-32 hibernate-osgi HHH-9064 Simplify/improve the hibernate-osgi tests March 18, 2014
Octocat-spinner-32 hibernate-proxool HHH-8733 - General build cleanup December 02, 2013
Octocat-spinner-32 hibernate-testing HHH-9094 update hibernate-infinispan for metamodel March 28, 2014
Octocat-spinner-32 release HHH-8773 - Remove cleaning as release task dep January 22, 2014
Octocat-spinner-32 shared HHH-8741 - More checkstyle cleanups November 24, 2013
Octocat-spinner-32 tooling Fixed bad merge of metamodel to master March 29, 2014
Octocat-spinner-32 .gitignore HHH-8777 dynamically generate descriptor dependencies February 04, 2014
Octocat-spinner-32 CONTRIBUTING.md Update CONTRIBUTING.md May 22, 2013
Octocat-spinner-32 README.md Fixing a typo and missing blank line in root README file December 12, 2013
Octocat-spinner-32 build.gradle set 5.0.0-SNAPSHOT version in build.gradle March 31, 2014
Octocat-spinner-32 changelog.txt 4.3.0.CR2 release December 05, 2013
Octocat-spinner-32 gradlew HHH-8141 - Upgrade to Gradle 1.5 April 04, 2013
Octocat-spinner-32 gradlew.bat HHH-8141 - Upgrade to Gradle 1.5 April 04, 2013
Octocat-spinner-32 hibernate_logo.gif SVN layout migration for core/branches/Branch_3_2 June 29, 2007
Octocat-spinner-32 lgpl.txt SVN layout migration for core/branches/Branch_3_2 June 29, 2007
Octocat-spinner-32 libraries.gradle HHH-8869 upgraded to HikariCP 1.3.5, replaced deprecated property April 07, 2014
Octocat-spinner-32 settings.gradle HHH-8869 created hibernate-hikaricp connection provider April 08, 2014
Octocat-spinner-32 source-generation.gradle HHH-8733 - General build cleanup December 02, 2013
Octocat-spinner-32 utilities.gradle HHH-8733 - General build cleanup December 02, 2013
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 if 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 hibernate-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.