pojo
public class RateCode implements java.io.Serializable {
private org.joda.time.DateTime travelTo;
private org.joda.time.DateTime bookingFrom;
}
Запрос
Query q = session.createQuery(
"from RateCode rr where rr.id.date>=:from and rr.id.date<=:to order by rr.id.date").setDate("from", from).setDate("to", to);
Но setDate / setTimeStamp Требуется util.Date.
ERROR: java.lang.NoSuchFieldError: TIMESTAMP
at org.joda.time.contrib.hibernate.PersistentDateTime.nullSafeSet(PersistentDateTime.java:83)
, так как установить в критериях createQuery.