Hibernate ORM 4.1.0 has just been released. This release adds a few new features, as well as a bunch of improvements and bug fixes. Some features in particular include:
- A new (actual) API for loading by natural identifiers. See mainly HHH-2879 and HHH-6974. Additionally, see my earlier post on this feature.
- Addition of a TenantIdentifierResolver for use with multitenancy in getCurrentSession use cases. See HHH-6336
- The ability to provide custom dirty handling. See HHH-3910 and HHH-6998
See the 4.1 release notes for the full details.
Additionally, quite a bit of work went into the documentation for this release. The JPA/HEM documentation has been completely consumed into Hibernate Reference Documentation
and Hibernate Developer Guide
. Mostly annotation/mapping information went into the former, while everything else went into the latter. Other efforts such as documenting multitenancy, services, etc when into Hibernate Developer Guide
as well. The focus now, as we move ahead will be folding the information from Hibernate Reference Documentation
into Hibernate Developer Guide
.
3.6.10 was released today as well. It contains some bugfixes. Again, see the release notes for the details.
P.S. A quick note about the name Hibernate ORM
. This refers to exactly what we previously called Hibernate Core. A brief history is that initially there was just Hibernate
, but as the team started working on related projects (Hibernate Search
, etc.) we agreed to refer to what had been just Hibernate
as Hibernate Core
. We recently decided that the core
portion of the name was just a bad choice, as it doe not give any clue as to the intent. Hence Hibernate ORM
.
Out of notable improvements on the Envers side, there's a pretty large new feature: being able to store flags for individual field changes, and later query that info (e.g. find revisions where the property changed).
See the related issue: https://hibernate.onjira.com/browse/HHH-6605 and the docs.
Blog post coming soon :)
Adam
Can you guys possibly release digital signatures for the zip files so that it is possible to validate that the file came form the developers?
Sure thats possible. Outline needed steps on https://hibernate.onjira.com/browse/HHH-7051 as I am not really familiar with details of publishing signing keys, etc.
For French developper ,they can make a Full-Text search on file,here
Thanks! When will it be in Maven Central?
I run very a basic query (no joins) in Hibernate 4.1 and get 3 records back. I copy the EXACT hibernate generated SQL and run it in PostgreSQL and get 4 records. 4 records is correct.
The Hibernate generated SQL:
select issue0_.issueID as issueID8_, issue0_.dateAdded as dateAdded8_, issue0_.dateUpdated as dateUpda3_8_, issue0_.projectID as projectID8_, issue0_.displayCode as displayC4_8_, issue0_.isActive as isActive8_, issue0_.issueCode as issueCode8_, issue0_.issueDesc as issueDesc8_, issue0_.statusID as statusID8_, issue0_.selectable as selectable8_, issue0_.substantive as substant9_8_, issue0_.whoUpdated as whoUpdated8_ from Issue issue0_ where issue0_.projectID = 1 and (issue0_.displayCode like '1.%') order by issue0_.issueCodeI have inspected the 4 records in the DB very closely, and see absolutely NO reason a record is being skipped; only when running the SQL through Hibernate.
Are you mapping your entities correctly? I believe your entity primary key is not the real primary key
It is there now Paul. There was a problem with Sonatype syncing the stuff from JBoss repo for a few days. But I just checked and it is there now.
Greg, this is not the correct place to get help. Notification, code formatting, etc just suck here. Use the forums or IRC for usage help.
Hello!
When is it scheduled a new release of hibernate-tools, compatible with last versions of hibernate-core?
I've seen great improvements in hibernate-core and others, but what about hibernate-tools? Don't leave it behind!
Thanks! Rui Baeta
Hi Rui, hibernate-tools is now part of a wider collections of tools: http://www.jboss.org/tools thanks for your support!
Yes, I'm aware of that, but the only part I'm interested in is hibernate-tools.jar, so that I can automate the reverse engineering process.
I'm looking for hibernate-tools.jar in your public maven repositories:
https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-tools/
and the last version is 3.2.4.GA, a couple of years old..., and incompatible with hibernate-core v3.5+
Do I have to download and install the whole IDE JBoss Developer Studio, when I just want to generate entity classes with ORM???
Rui Baeta
Where is the new 4.1 Documentation? hibernate.org/docs still shows 4.0.
Thanks!
ps, Like Rui, I too miss hibernate-tools from the old days
http://docs.jboss.org/hibernate/orm/4.1/ or http://docs.jboss.org/hibernate/core/4.1/
I am also interested in custom reverse engineering strategy. Confused about how this works with hibernate 4.1 release. Thanks.
Hi,
I am trying to migrate from hibernate 3.6 to 4.1, I could not find the below two classes in hibernate 4.1 jar files. Can somebody explain where have those classes gone?
org.hibernate.jdbc.ConnectionManager org.hibernate.jdbc.ConnectionWrapper
Thanks in advance for any help/suggestion!
-Srikanth