in my project It would be painful to change the Hibernate version. Is there another way to use joda time hibernate and 3.2.6.ga hibernate version to map LocalDateTime to Date oracle column?
After many headaches in java.util.Date and Calendar, I solved it in I use joda-time 1.3 in my project, but now I am facing another problem. The project uses Hibernate 3.2.6.ga version. In order to map LocalDateTime class properties, I used org.joda.time.contrib.hibernate in hbm .PersistentLocalDateTime. When I try to test the application, I get the error java.lang.NoClassDefFoundError: org.hibernate.type.StandardBasicTypes. So I noticed that I am using joda-time hibernate (v 1.3) for Hibernate> 3.6 .0 version.
It would be painful to change Hibernate version in my project. Is there another way to use joda time hibernate and 3.2.6.ga hibernate version to map LocalDateTime to Date oracle List?
Create a custom UserType. Create a class that implements the UserType class from the Hibernate API. All the methods you need to declare, you can start from the class org/joda/time/ contrib / hibernate / PersistentLocalDateTime obtain