Two attribute long, date have to be clubbed using org.hibernate.UserType
import org.hibernate.usertype.*;
mapping document;
<property name="ddtTime" type="org.hibernate.UserType">
<column name="PERFORMTC"/>
<column name="PERFORMT"/>
</property>
first colmn mentioned is date, second one long fields.
pojos;
instead of
private Date performTC; and private long performT;
I have changed to
private org.hibernate.usertype.UserType ddtTime;
when i execute, the exception:
Could not determine type for: org.hibernate.UserType, for columns: [org.hibernate.mapping.Column(PERFORMTC), org.hibernate.mapping.Column(PERFORMT)]
|