I usually use GregorianCalendar / "calendar" but on this current project I am having to use dates and timestamps.
I turned off the optimizer and I now get the following log trace
2006-02-02 14:45:35,330 - ERROR - IllegalArgumentException in class: com.fujitsu.lis.nz.cv.model.Changed, setter method of property: addedOn
2006-02-02 14:45:35,330 - ERROR - IllegalArgumentException in class: com.fujitsu.lis.nz.cv.model.Changed, setter method of property: addedOn
2006-02-02 14:45:35,330 - ERROR - expected type: java.sql.Date, actual value: java.sql.Timestamp
2006-02-02 14:45:35,330 - ERROR - expected type: java.sql.Date, actual value: java.sql.Timestamp
2006-02-02 14:45:35,345 - INFO - Error performing load command
org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com.fujitsu.lis.nz.cv.model.Changed.addedOn
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:104)
at etc...
java.sql.Timestamp to java.sql.Date obviously will not go. I will change my mapping. Doh!
Thanks for the help.
|