-->
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.  [ 2 posts ] 
Author Message
 Post subject: Date query using HQL
PostPosted: Thu Aug 26, 2004 7:04 am 
Newbie

Joined: Thu Aug 26, 2004 7:00 am
Posts: 1
Hello,

I'm trying to return all objects in my db that have a lastUpdated value of more than 6 months ago andwas wondering how I can do this using the HQL? I realise there is a sysdate value but am unsure as to how I can create a query such as sysdate - months(6).

Any help would be greatly appreciated!

Thanks,
Dan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 7:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
You can call SQL functions from HQL.


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

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.