Search

Downloads

Hibernate releases are consumable in 2 different formats:

Release bundle

The Hibernate team provides release bundles hosted on the SourceForge File Release System, both in ZIP and TGZ formats.  They contain jars, documentation, source code, etc.

Maven repository artifacts

The preferred method of "using" Hibernate is via Maven artifact repositories.  Many build tools are able to interoperate with Maven repositories including Maven, Ivy, Gradle, etc.

Hibernate publishes its artifacts to the JBoss Maven Repository under the org.hibernate groupId/namespace.

See the Maven Repository Organization community page for information on the organtization of the Nexus groups. Additionally, the specific developer and user set up guides will be helpful.

Release Announcements

Hibernate ORM 4.3.0.Beta2 Released
May 2, 2013 4:31 PM by Brett Meyer

Hibernate ORM 4.3.0.Beta2 was just released. The full changelog can be viewed here

This release includes several notable changes. Some of this will borrow from the 4.2.1 announcement:

  • ORM is now enforcing checkstyle within all modules. This was applied in HHH-8156. Violations were corrected in HHH-8159 and will continue to be corrected under HHH-8211 for 4.3.0.Beta3.
  • HHH-8175 Official support for Postgresql 9.2, Postgres Plus 9.2, and IBM DB2 10.1. Luckily, these mostly worked out-of-the-box with our existing dialects. Only a few test changes were necessary.
  • HHH-7797 (release 4.2.0 and 4.3.0.Beta1) changed the way uniqueness is handled. Rather than mixing "unique" on column definitions, "unique(columns...)" on table definitions, unique indexes, and unique constraints, all were changed to solely use unique constraints (DB2 is the exception -- indexes are use in certain circumstances). Follow-up issues were corrected in this release: HHH-8162 and HHH-8178.
  • More details about HHH-8162: Since unique constraints are now the default, special handling was necessary within SchemaUpdate. The method used is configurable, selected with the "hibernate.schema_update.unique_constraint_strategy" property. DROP_RECREATE_QUIETLY is the default. It attempts to drop, then (re-)create each unique constraint within your model. All errors and exceptions (constraint doesn't exist, constraint already existed, etc.) are ignored. RECREATE_QUIETLY is the same, but does not attempt the drop. SKIP will not attempt to drop or create unique constraints at all on the SchemaUpdate.
  • HHH-7617 Support for generating Eclipse IDE projects was improved. Please see this post for more info.
  • HHH-7944 Envers is now supported in OSGi.
  • HHH-7943 improved the c3p0, proxool, ehcache, and infinispan strategies. All are now selectable in configurations by both classname and a short name. Further, their strategies were integrated as OSGi services. Note that HHH-7943 has multiple follow-on tickets due to classloader issues found with many of the 3rd party bundles.
  • HHH-7993 supports basic OSGi Bundle scanning to automatically discover entities and mappings in your persistence unit bundle.
  • HHH-8183 supports synonyms in schema validation. Enable the capability with the "hibernate.synonyms=true" property (disabled by default).
  • HHH-8203 ensures support of Proxool 0.9.1.
  • Deprecations: Hibernate's @ForeignKey in HHH-8170 (use JPA's @ForeignKey), @IndexColumn and @ListIndexBase in HHH-8163, and @Sort in HHH-8164 (use @SortNatural or @SortComparator)

JBoss Nexus: https://repository.jboss.org/nexus/content/groups/public/org/hibernate
Maven Central: http://repo1.maven.org/maven2/org/hibernate/hibernate-core (should update in a couple of days)
SourceForge: https://sourceforge.net/projects/hibernate/files/hibernate4
Downloads: 4.3.0.Beta2 ZIP, 4.3.0.Beta2 TGZ

Hibernate ORM 4.2.1.Final and 4.1.12.Final Released
Apr 25, 2013 12:00 PM by Brett Meyer

Hibernate ORM 4.2.1.Final and 4.1.12.Final were just released. The full changelogs can be viewed here: 4.2.1.Final and 4.1.12.Final

Originally, 4.1.11 was slated to be the final release of 4.1.x. However, in HHH-8149, we reverted HHH-7797 for 4.1 (changed unique columns, keys, and constraints). The change had snowballed into numerous issues and, in hindsight, shouldn't have been made in 4.1.x to begin with. To clean things up, it was decided to release 4.1.12.

4.2.1 includes several notable changes:

  • HHH-8175 Official support for Postgresql 9.2, Postgres Plus 9.2, and IBM DB2 10.1. Luckily, these mostly worked out-of-the-box with our existing dialects. Only a few test changes were necessary.
  • As mentioned above, HHH-7797 (release 4.2.0) changed the way uniqueness is handled. Rather than mixing unique on column definitions, unique(columns...) on table definitions, unique indexes, and unique constraints, all were changed to solely use unique constraints (DB2 is the exception -- indexes are use in certain circumstances). The issues mentioned were corrected in this release: HHH-8092, HHH-8162, and HHH-8178.
  • More details about HHH-8162: Since unique constraints are now the default, special handling was necessary within SchemaUpdate. The method used is configurable, selected with the hibernate.schema_update.unique_constraint_strategy property. DROP_RECREATE_QUIETLY is the default. It attempts to drop, then (re-)create each unique constraint within your model. All errors and exceptions (constraint doesn't exist, constraint already existed, etc.) are ignored. RECREATE_QUIETLY is the same, but does not attempt the drop. SKIP will not attempt to drop or create unique constraints at all on the SchemaUpdate.
  • HHH-1904 In order to ensure that Hibernate does not generate foreign key and unique key names that are too long for certain dialects (ie, Oracle), the generation now uses random characters < 30 characters in length. Of course, this does not affect keys explicitly named in your mappings.
  • HHH-7617 Support for generating Eclipse IDE projects was improved. Please see this post for more info.
  • Our ClassLoader concepts for OSGi support were greatly improved by HHH-8096. In addition, HHH-7993 supports basic Bundle scanning to automatically discover entities and mappings in your persistence unit bundle.
  • HHH-7714 added support for EntityMode.MAP in the JPA Criteria API.
  • HHH-8183 supports synonyms in schema validation. Enable the capability with the hibernate.synonyms=true property (disabled by default).
  • HHH-8203 ensures support of Proxool 0.9.1.

JBoss Nexus: https://repository.jboss.org/nexus/content/groups/public/org/hibernate
Maven Central: http://repo1.maven.org/maven2/org/hibernate/hibernate-core (should update in a couple of days)
SourceForge: https://sourceforge.net/projects/hibernate/files/hibernate4
Downloads: 4.2.1.Final ZIP, 4.2.1.Final TGZ, 4.1.12.Final ZIP, 4.1.12.Final TGZ

Hibernate ORM 4.3.0.Beta1 Release
Apr 3, 2013 1:14 PM by Steve Ebersole

The Hibernate team is pleased to announce today's release of Hibernate 4.3.0.Beta1 which targets the (still not finalized) JPA 2.1 specification which is part of the upcoming Java EE 7 platform. This is the first release targeting JPA 2.1 support. As mentioned, JPA 2.1 is not completely finalized so this support should be considered a preview. JPA 2.1 defines a number of enhancements. I won't go in depth in each of them here as I plan to follow up with separate in-depth blog posts for some of these features. However, the web abounds with good summaries of the new features; for example:

  • https://blogs.oracle.com/arungupta/entry/jpa21earlydraft
  • https://blogs.oracle.com/arungupta/entry/jpa21schemageneration

One feature that I did not see discussed much is the notion of entity graphs. This Beta1 release has very limited support for entity graphs. You can define entity graphs, but at the moment they are not taken into account while loading data. This will be the focus of Beta2.

4.3 continues building on the OSGi support begun with 4.2, and also contains many other improvements and fixes. For the full break down of changes, see the changelog.

As usual, the artifacts have been uploaded to the JBoss Nexus repository (which is synchronized to Maven Central regularly) and the release bundles have been uploaded to the Hibernate SourceForge in both ZIP and TGZ formats.

View more release announcements