• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPQL Timestamp Query  RSS feed

 
Bradley Rintoul
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question about selecting on a timestamp value... I have a column/field which is a TemporalType.TIMESTAMP and I want to find all objects in the database with a timestamp of a certain _date_ only. I don't care about the hours/minutes/seconds, etc. I have used "truncate" in the case of an Oracle query, for example, but I have no idea how to perform an analogous operation in JPQL! Help me, please!

If I need to make anything more clear in my problem, please let me know...

TIA,

Brad
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!