-->
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: comparison against MySql datetime
PostPosted: Mon Sep 17, 2007 7:13 pm 
Newbie

Joined: Mon Sep 17, 2007 7:04 pm
Posts: 3
Hi,

I'm having problems with the following query

Code:
from Account a
where a.zeroSubscribersTimestamp <= :cutoffTime


In short, it seems that only the date part of the object I'm substituting for the "cutoffTime" param is being used in the comparison against the "zeroSubscribersTimestamp" property.

I've tried changing the type of this object from a Date to a Timestamp, but the result is the same - the time part is ignored. I'm running against a MySql database, and the type of the relevant column is "timestamp" in the DB and "timestamp" in the .hbm.xml.

Thanks in advance for any suggestions!
- DM


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.