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.  [ 3 posts ] 
Author Message
 Post subject: Regrading criteria queries.
PostPosted: Sat Oct 20, 2007 2:51 am 
Newbie

Joined: Sat Oct 20, 2007 2:43 am
Posts: 11
Can I have nested Criteria query? means I have one criteria query, can I have another criteria query in where condition? Please reply as soon as possible with some example.


thanks in advance
Pawan


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 22, 2007 11:38 am 
Expert
Expert

Joined: Sat Jan 17, 2004 2:57 pm
Posts: 329
Location: In the basement in my underwear
Yes, take a look at Subqueries class.

_________________
Some people are like Slinkies - not really good for anything, but you still can't help but smile when you see one tumble down the stairs.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 3:41 pm 
Newbie

Joined: Tue Oct 23, 2007 2:10 pm
Posts: 3
Can you provide the sql you're trying to get to work with hibernate? I don't know if you're simply trying to add multiple expressions or if you're trying to do an "IN" or "EXISTS" with sql as the clause.


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