What's new in Hibernate 4?
Asked Answered
H

4

87

I just saw that a beta of Hibernate 4 was released. What's new in 4 compared to 3(.6)? I couldn't find this info in the beta announcement, nor when Googling the title of this question.

Haemachrome answered 26/7, 2011 at 13:11 Comment(5)
You mean this? hibernate.onjira.com/browse/HHH/fixforversion/11242Eisenstein
@prusswan: No, that's just some fixed bugs/closed tickets in this specific release. I'm looking for a prose version of the large-scale changes/improvement between 3 and 4 (i.e. the reasons they made it 4 and not 3.7)Haemachrome
Oopps sorry I posted the same answer which what you don't need.Moe
Be careful that the old "caching model" has been removed from the API :)Orelia
[link]#11500429 It would be helpful if someone from hibernate community gives answer to this link also.Kenogenesis
S
72

I can't paste the answers here because I don't have enough reputation points to add more than two links in the answer (I really need spend more time on this site) :(

So, I wrote a blog post. Please go there and find the answers. Sorry for the inconvenience.


EDIT: Quoted from http://in.relation.to/Bloggers/WhatsNewInHibernateCore40.

What's new in Hibernate Core 4.0

I saw someone is asking "what new in Hibernate Core 4.0", so I take sometime and try to summary it here. first of all, please see:

  • The migration guide for 4.0
  • JIRA filter link which lists all *improvements- and new features in Hibernate Core 4.0.0, you can get all details from this link :)

Some highlights:

  • Move to gradle for builds
  • Redesign SessionFactory building
  • Introduction of services (see this for more details)
  • Improved metamodel (not in 4.0.0.Final yet, we planned this, but due to the tasks are more than we expected, and it would take too long to get 4.0 out, so we decided to move this out of 4.0.0.Final but will be upcoming release soon see this for more details, and this is a design document)
  • Initial osgi-fication by package splitting (public, internal, spi)
  • Support for multi-tenant databases (see this for more details)
  • Migration to i18n logging framework (using jboss logging)
  • JDK 1.6 (JDBC4) as baseline
  • and more (I can't remember all the things :)
Sylvanus answered 13/11, 2011 at 15:27 Comment(2)
I have added the useful information from the blog. Does the updated answer match your blog post concept?Thermy
I hope something will be done about the mapping for SQL Server BigInts :PEisenstein
E
15

It appears that most of what you want are in the migration guide for 4.0, as well as the blog post on alpha 1 release, and perhaps the Hibernate 4 webinar.

Eisenstein answered 26/7, 2011 at 13:42 Comment(1)
Doesn't look like there are any exciting things (at least not for me who develops simple applications with JPA)Haemachrome
D
6

New features that are introduced in Hibernate core 4.0 releases are as follows:

  • Provide support for initial multi-tenancy

  • Introduces a ServiceRegistry.

  • Clean up of Session opening from SessionFactory.

  • Using org.hibernate.integrator.spi.Integrator made integration and auto discovery more desirable.

  • Improve to work with i18n and message codes.

  • Clean up of deprecated interfaces, methods, etc.

Disarming answered 10/12, 2012 at 10:56 Comment(0)
U
3

Don't know if this will benefit you, but I found some information on the Hibernate 4 Webinar page. In a linked doc they also gave some links. I have not had a look at them, but maybe give them a go:

http://community.jboss.org/wiki/Hibernate4Webinar

http://community.jboss.org/wiki/HibernateCoreMigrationGuide40

https://lists.jboss.org/mailman/listinfo/hibernate-dev

http://www.hibernate.org/community/irc

Uranalysis answered 26/7, 2011 at 13:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.