i'm using
- Hibernate Core 3.2.0.cr2
- Hibernate Annotations 3.2.0.cr1
- joda-time-1.3
and the following annotations:
Code:
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "start_date_time")
@Type (type = "org.joda.time.contrib.hibernate.PersistentDateTime")
private DateTime _startDateTime;
and I'm getting the following exception
Code:
org.hibernate.AnnotationException: @Temporal should be set on a java.util.Date or java.util.Calendar property: xxx.xxx.xxx.CallImpl._startDateTime
at org.hibernate.cfg.annotations.SimpleValueBinder.setType(SimpleValueBinder.java:88)
is this restriction for the @Temporal annotation really neccessary?! .. any known workarounds?
P.S. same code works fine with hibernate 3.0 & 3.1 libs
many thx in advance,
prot