-->
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: Got a hibernate problem,help,help.
PostPosted: Thu Mar 04, 2010 11:12 pm 
Newbie

Joined: Thu Mar 04, 2010 11:02 pm
Posts: 2
there are two classes,simple like this.
class A{
int aId,
B b
}
class B{
int bId
}

there is a SQL:select * from A where bId in (select bId from B)

How can i use the HQL?

Help.


Top
 Profile  
 
 Post subject: Re: Got a hibernate problem,help,help.
PostPosted: Fri Mar 05, 2010 1:37 am 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
Code:
from A a where a.b in (from B b)


Top
 Profile  
 
 Post subject: Re: Got a hibernate problem,help,help.
PostPosted: Fri May 07, 2010 4:59 am 
Newbie

Joined: Thu Mar 04, 2010 11:02 pm
Posts: 2
Thx


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.