-->
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.  [ 4 posts ] 
Author Message
 Post subject: Filter on many-to-many relations
PostPosted: Fri Dec 30, 2005 7:21 am 
Beginner
Beginner

Joined: Thu Dec 01, 2005 12:53 am
Posts: 21
Hibernate version: 3.0


I am using filter on many-to-many relationship with associatoin table...but Hibernatre genrates query which seems to apply filter on the column of association table rather of the mapping entity in which the filter is applied... so evantually that queries fails with unknown column msg...

Will migration to 3.1 fix it? .. using 3.0 currently.. I also see a jira issue for this one http://opensource2.atlassian.com/projec ... se/HHH-229


Top
 Profile  
 
 Post subject: many-to-many and filters
PostPosted: Mon Jan 09, 2006 10:12 am 
Newbie

Joined: Wed Dec 07, 2005 10:20 am
Posts: 6
See this post for more details...

http://forum.hibernate.org/viewtopic.php?t=951171

For a many-to-many set you need to apply the filter to the many-to-many mapping and for other set associations you apply it to the set mapping.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 2:00 pm 
Beginner
Beginner

Joined: Thu Dec 01, 2005 12:53 am
Posts: 21
That was me on that post who posted the solution... :-)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 11:13 pm 
Newbie

Joined: Wed Dec 07, 2005 10:20 am
Posts: 6
oops! :-D[/img]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.