• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to bind a date in HQL

Srinivasan Ramakrishnan
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to figure out a way to bind the java util date in HQL query. My query is a insert query which has a SELECT Query. I am trying to insert the created time with java.util.Date. Since it on the select query , I am not to able to bind it.

if you look at the code above , I currently use sysdate but I need to populate the value in the App and it shouldn't depend on the DB's timestamp.

Thoughts on this are much appreciated.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!