-->
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.  [ 1 post ] 
Author Message
 Post subject: How to constrain collection in HQL?
PostPosted: Fri Oct 08, 2004 6:54 am 
Regular
Regular

Joined: Thu Aug 28, 2003 10:54 am
Posts: 67
What i am trying to do is very simple but...

My class Parent has a Map of children and I want to load the parent with only a subset of children. I am trying

From Parent p left join fetch p.children where p = ? and p.children.elements = ?

But i get a jdbc exception saying

"more than one row returned by a subquery used as an expression"

Do I need to create a filter or use a criteria query? Also, the elements of the child map are a CompositeUserType - is that relevant?

thanks for any help


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.