-->
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: Restrictions does not support Calendar ?
PostPosted: Sun Oct 08, 2006 9:49 pm 
Regular
Regular

Joined: Tue Jul 13, 2004 2:27 am
Posts: 73
Location: Singapore
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1.3

Mapping documents:

<property name="createTime" type="calendar" column="CREATE_TIME"/>

Name and version of the database you are using: My SQL 5.0.15


Hi,
I was trying to build a Restrictions for a Calendar property, but I do not get any result:

criteria.add (Restrictions.lt ("createTime", cal));

where cal is a Calendar value.

Wondering is Restrictions.lt/gt supports Calendar ?

thanks
lixin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 13, 2006 5:00 am 
Regular
Regular

Joined: Tue Jul 13, 2004 2:27 am
Posts: 73
Location: Singapore
this is caused by the default inner join used in createAlias. need to use JoinFragment to specify the right join type.


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.