-->
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: does hbm have an "IN" where clause?
PostPosted: Mon Apr 05, 2010 2:04 pm 
Newbie

Joined: Thu Mar 26, 2009 8:50 pm
Posts: 5
Hi i'm try to execute an "IN" inside the where

Does hbm have something like the "IN" caluse in sql

Ex in sql

select * from Authors
where Authors.PublisherId IN ( select PublisherId from Publisher where State = 'TX' )

That selects all Authors that have a Publisher located in Texas.

Is that possible to write as an hbm query?


Top
 Profile  
 
 Post subject: Re: does hbm have an "IN" where clause?
PostPosted: Tue Apr 06, 2010 2:36 am 
Beginner
Beginner

Joined: Fri Feb 27, 2009 6:07 am
Posts: 38
Location: Moscow,Russia
http://nhforge.org/doc/nh/en/index.html#queryhql-subqueries


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.