-->
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: Collection filtering in Hibernate 2.1.x
PostPosted: Thu Aug 26, 2004 6:40 pm 
Newbie

Joined: Thu Aug 05, 2004 5:29 pm
Posts: 3
The new Hibernate3 defines the <filter> tag in the mappings file for enabling subsets of data to be returned, which is great.
I want to know if it's possible to filter the results of a one-to-many association in Hibernate 2.1.x, without having to create a separate query just for filtering the associated collection (I make a query for an object, but want to filter one of its associated collection of objects as well).
Is it possible, or will I really have to stick to the multiple queries approach?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 27, 2004 8:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You can use a where-attribute in your mapping, but it is not dynamic


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.