-->
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: Oracle and date functions
PostPosted: Fri Aug 26, 2005 8:37 am 
Newbie

Joined: Wed Aug 10, 2005 8:07 am
Posts: 14
Hi,
is it possible to use function like interval or current_date with Hibernate 3 :
Something like that :
Code:
Query q = session.createQuery(
                     "from Bank bk " +
                     "where b.balanceDate > current_date - interval :time" );
      q.setString("time","25 day");


is HQL can parse this ?
Anf if not how can i have the same result

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 8:51 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Look at interface SQLFunction.


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.