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: Criteria API: Restrictions.isNotTrue, isNotFalse
PostPosted: Wed Nov 16, 2005 11:27 am 
Beginner
Beginner

Joined: Sat Sep 17, 2005 10:41 am
Posts: 49
Currently, there is no way for the Criteria API to support the following query:

select * from SomeTable where someBoolean is not true ;

Which would return all rows where someBoolean is null or false. Would it be possible to add Restrictions.isNotTrue (String propertyName), and its inverse, Restrictions.isNotFalse (String propertyName)? Currently, the workaround is to use a sqlRestriction (propertyName + " is not true") but this assumes that the physical column name matches the property name.


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.