-->
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: using cretiria when the column type is boolean
PostPosted: Sat Jun 05, 2010 7:01 pm 
Newbie

Joined: Sat Apr 10, 2010 9:12 am
Posts: 6
hi everyone

I have a in the data base a column named test with boolean type
when I tried to use a criteria request, I got this exception:
Code:
org.hibernate.QueryException: could not resolve property

here is my criteria:
Code:
Boolean bb=new Boolean(false);
criteria.add(Restrictions.eq("test", bb));


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.