-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: current date
PostPosted: Tue Aug 24, 2004 12:53 pm 
Beginner
Beginner

Joined: Wed Feb 25, 2004 6:23 pm
Posts: 39
The Hibernate docs contain this example query:
Code:
from Calendar cal where cal.holidays.maxElement > current date

Is 'current date' something specific to HQL or to the DB? "current date" is not mentioned anywhere else in the docs. I just need a way to insert the current time (in relation to the server that Hibernate is running on) into a query and maybe "current date" is the answer? Yes, I could use parameterized queries, but that would be a major pain (this field would appear in a lot of queries).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.