Hibernate 3.2.6.GA LocalDateTime (JODA-TIME) mapping

After many headaches with java.util.Date and Calendar, I solved using 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.PersistentLocalDateTime in hbm. When I tried to test the application, I received 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.

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?

Create a custom UserType. Create a class from the Hibernate API implementation class UserType. All you need to declare Method, you can get it from the class org/joda/time/contrib/hibernate/PersistentLocalDateTime

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

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4440 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.