-->
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: Date operations
PostPosted: Tue Sep 12, 2006 6:07 am 
Newbie

Joined: Thu Jul 27, 2006 12:55 pm
Posts: 5
Hi,

I try to write a HQL query having date operations like:

from t_table where date_col1 > date_col2 + 8days

At first I tried to change 8days in ms but the results were not those expected.

Then I tried to create a Calendar instance initialized with 8days in ms (wich equals approx 08/01/1970) and to bind it to the query with query.setCalendar(0,<myCalVar>), but, once again, the results were not those expected.

So, my last chance before switching to use SQL proprietary to my DBMS functions is to asking help...

Thanks


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.