-->
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.  [ 4 posts ] 
Author Message
 Post subject: hibernate query language
PostPosted: Fri Feb 06, 2004 11:58 am 
Beginner
Beginner

Joined: Tue Jan 27, 2004 10:59 am
Posts: 24
final String QUERY =
"from b in class " + Books.class +" where b.isNew = true;";

I want to know what could be wrong in my above query using Hiberntae Query Language because all I am doing is checking the boolean value of the attribute 'isNew' of 'book' object.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2004 12:05 pm 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
Would be nice if you could post the stacktrace and/or error messages you get.
But I suspect you have to remove the trailing ; from your HQL query...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2004 12:21 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
and the 'in class' syntax works but is deprecated, please use
Code:
from my.Book b where b.property=

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2004 1:02 pm 
Beginner
Beginner

Joined: Tue Jan 27, 2004 10:59 am
Posts: 24
thanks
will try this now


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.