-->
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 apply filter on association table
PostPosted: Sat Sep 06, 2008 2:26 am 
Newbie

Joined: Sat Dec 01, 2007 1:24 am
Posts: 7
Location: Pune
Hi All,
I want to maintain Many-to-Many relationship in between Role and menu table, for that I am using association table "ROLE_MENU_ASSOC", in this table I have "active_yn" column, if I want to assign filter on this column like "active_yn = Y". By that way I want to get active 'Y' association, How do I apply this filter on association table.
Here is my Role side mapping code,
Code:

  <!-- Many-to-many relation between Role and Menu trough association table -->    <set name="menuSet" table="ROLE_MENU_ASSOC" lazy="false">   
<key column="GR_ID"/>
<many-to-many column="GM_ID" class="com.greenlight.testxpert.struts.framework.MenusForm"/>
    </set>
   <!-- associations --> 



Please reply,
Thanks & Regards,
Gajendra


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.