-->
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: many-to-many ploblem
PostPosted: Thu Jan 19, 2006 7:47 am 
Newbie

Joined: Thu Jan 19, 2006 7:24 am
Posts: 17
I have the tables which have association as many-to-many relationship.
It use for keep User Permission and application detail.

Tables :
user_group( user_gro_id, user_gro_name, user_gro_detail )
user_permission( user_gro_id, app_id, is_read, is_create, is_modify, is_delete )
web_application( app_id, app_name, app_detail )


The ploblem is that there are new fields comed from many-to-many relationship, is_read, is_create, is_modify, is_delete , then how do i manage the fields and how do i map the tables to object as many-to-many mapping.

I try to search by google for many-to-many mapping; but i only found the general examples that no have fields comed from many-to-many relationship.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 8:45 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Map it as <set> containing a <composite-element> or <one-to-many>, instead of <many-to-many>.


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.