Help

The Hibernate team is proud to announce the 4.3.0.CR1 release of Hibernate ORM. This is the first release candidate for 4.3 and JPA 2.1 support. For those who maybe are not familiar with our release methodology, this means that in 2-3 weeks this release will essentially be re-tagged as Final unless some critical bugs are reported with it in the meantime.

I will do a full break down of all the new goodies added over the course of 4.3 development in the Final release announcement. Specific development of note done for CR1 include:

  • Support for JPA 2.1 EntityGraphs. This was the biggie holding us back from going to CR. HHH-8285 and friends
  • Integration of the Hibernate JPA Static Metamodel Generator into the ORM project - HHH-8483
  • Starting on break down of the monolithic DocBook-based manuals into smaller Asciidoc-based topical guides (ongoing) - HHH-8606
  • A number of performance fixes including HHH-8709, 8704, 8698, HHH-8682, etal.

The full version info (including change log) can be seen on the version page

Artifacts and release bundles can be found in the normal places.

3 comments:
 
29. Nov 2013, 09:48 CET | Link

I was desperately waiting for entity graph support and that's avaliable now. Great news - great job - thank you.

I have one question regarding the difference between load and fetch graph:

Suppose we have a class with some lazy and eager attributes, defining an entity graph for a lazy attribute e. g.

@Entity @NamedEntityGraph(name = "Publisher_books", attributeNodes = @NamedAttributeNode(value = "books")) public class Publisher { @OneToMany(mappedBy = "publisher", fetch = FetchType.LAZY) private List<Book> books; @ElementCollection(fetch = FetchType.EAGER) private List<String> categories; ... } If I run a query like select p from Publisher p and specify the entity graph by the hint javax.persistence.fetchgraph, I would expect books to be fetched, but categories not. By using the hint javax.persistence.loadgraph both attributed would be fetched. Is my expectation correct?

Regards, Dirk

 
29. Nov 2013, 15:44 CET | Link
Jostein Gogstad

Is the new dependency to Java 7 intentional? (ref My Link)

 
02. Dec 2013, 15:37 CET | Link
Dirk Weil wrote on Nov 29, 2013 03:48:
I was desperately waiting for entity graph support and that's avaliable now. Great news - great job - thank you.

It was certainly a struggle to add this feature for various reasons. So thanks!

Dirk Weil wrote on Nov 29, 2013 03:48:
If I run a query like select p from Publisher p and specify the entity graph by the hint javax.persistence.fetchgraph, I would expect books to be fetched, but categories not. By using the hint javax.persistence.loadgraph both attributed would be fetched. Is my expectation correct?

Yes, thats a valid assumption.

Post Comment
Name:
E-mail address (optional):
Homepage URL (optional):
Subject:
Help
Let me type some plain text, not markup
Enable live preview
Enter characters (ignore circles):