-->
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: Filter a mapping table in many-to-many relationship
PostPosted: Wed May 23, 2007 4:07 am 
Newbie

Joined: Wed May 23, 2007 3:54 am
Posts: 2
Good morning,

Is there a way, in a many-to-many relationship, to do some filtering on the mapping table without having that mapping table mapped in the object model?

E.g. three tables:

Code:
User *-- UserGroup --* Group


All I care about in my object model is User and Group with an elegant many-to-many relation, and I certainly don't want to see any UserGroup stuff, but I must still filter some records in the UserGroup table (there's a column "status" in it and it must be set to "enabled").

I've tried to search Google and the forum on terms like 'filter', 'subselect', 'filter mapping', but in Hibernate those seem to bear a different meaning that what I'm looking for.

Any suggestion would be welcome

Cheers


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.