The Joda-Time Hibernate library no longer works with the latest release of 
Hibernate, version 3.6. This was brought up on the SourceForce issue tracker in 
bug ID 
3090209<https://sourceforge.net/tracker/?func=detail&aid=3090209&group_id=97367&atid=617889>.
 The resolution suggested there was to stop using Joda-Time Hibernate and 
switch to another project called User Type.

However Joda-Time Hibernate does actually work fine if you compile it against 
Hibernate 3.6. No code changes are required, it just that the Hibernate method 
signatures have changed slightly and so Joda-Time Hibernate needs to be bound 
against the new return types. In particular, Hiberate.TIMESTAMP used to return 
a NullableType, and since 3.6 it returns TimestampType.

Simply updating the Hibernate dependency in Maven (as shown below) will make 
Joda-Time Hibernate work with Hibernate 3.6:


    <dependency>

      <groupId>org.hibernate</groupId>

      <artifactId>hibernate-core</artifactId>

      <version>3.6.0.Final</version>

    </dependency>

This is obviously a pretty simple fix. So can I suggest that someone publishes 
an official release of Joda-Time Hibernate on SourceForge that has been 
compiled again Hibernate 3.6? Barring that, at least tell people on the website 
that the library works with Hibernate 3.6 if they recompile it themselves?

Cheers
Charles

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to