KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
hibernate - 3.6.0.Final joda - 1.4 how to support direct joda.DateTime in pojo for hibernate so can be session.saveOrUpdate(rateCodeId); pojo public class RateCodeId implements java.io.Serializable { private int roomId; private org.joda.Time.DateTime date; } hbm.xml <key-property name="date" type="org.joda.time.contrib.hibernate.PersistentDateTime"> <column length="10" name="date" /> </key-property> ERROR: org.hibernate.MappingException: Could not determine type for: org.joda.time.contrib.hibernate.PersistentDateTime AND without "type=" ERROR java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.util.Date
Tags (comma-separated)
Save Edits
Cancel