JBoss Community

Hibernate tools for Hibernate 4.x

created by Marcel Stör in JBoss Tools - View the full discussion

What's the status of Hibernate tools for Hibernate 4.x?

 

Problem

After upgrading to Hibernate 4.x the hibernate3-maven-plugin 3.0 failed. It uses hibernate-tools 3.2.4.GA internally. I could work around the issues by adding an explicit dependency to Hibernate 3.6 like so


<dependencies>
  <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>3.6.10.Final</version>
  </dependency>
</dependencies>

 

 

This, however, has negative side-effects because new Hibernate 4 features are not present while running hbm2ddl.

Thanks to the new data type auto-registration in Hibernate 4 (put to work by Usertype for Joda Time data types) we were able to remove all @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime") annotations from our entities. Now while running hbm2ddl in Maven "works" the generated schema doesn't contain proper data type declarations because Hibernate 3.6 doesn't know about Joda Time.

 

Hibernate tools on Github

I saw that there's some action on https://github.com/hibernate/hibernate-tools/. How likely is it that building the latest 4.0.0 SNAPSHOT from there myself will fix the above mentioned issues?

 

Cheers,

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community