• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPQL Timestamp Query

Bradley Rintoul
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...


Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!