-->
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: HQL Question
PostPosted: Fri Oct 22, 2004 1:23 am 
Newbie

Joined: Fri Oct 08, 2004 10:11 pm
Posts: 6
Dear All,

I have these classes.... Parent and Child

so we can do something like p.getAllChildren() where p is instantiation of Parent and that function return List of child.

So in HQL can i do ...

from Child as child where Parent = p;

where p is object of Parent, taken from somewhere else.

If not, how do we retrive .... 'children of parent' using HQL

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 22, 2004 2:01 am 
Pro
Pro

Joined: Tue Aug 26, 2003 8:07 pm
Posts: 229
Location: Brisbane, Australia
Yes.

The exact syntax given won't work though, look it up in the reference doco.

_________________
Cheers,
Shorn.


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.