• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timestamp between of DateA and DateB

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a timestampValue which is mapped as:



in my database, the timestamp-value is something like:



Now, I have two Values of type java.util.Date:



Now, I want a hql, which gives the range between myFirstDate and mySecondDate, something like:



But this does not work as myFirstDate and mySecondDate are not comparable with the Timestamp-Object, or?

Any suggestions?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic