-->
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: Advanced many-to-many mapping question
PostPosted: Mon Apr 18, 2005 9:43 pm 
Newbie

Joined: Mon Dec 20, 2004 11:53 am
Posts: 8
Hi all,

I have the following schema:

User (user_id, firstname, ...) user_id is pk

Department (dept_id, name, desc) dept_id is pk

Role (role_id, name, desc) role_id is pk

UserDeptRole (udr_id, user_id, dept_id, role_id)

the last is the join table (many-to-many) between user
and dept. For each user / dept assocation their can be
one role. udr_id is just an autoincrementing pk for
the table. What is the best way to model this with
Hibernate, I just have not done this with any orm
before.

Thanks!
Abdullah


Top
 Profile  
 
 Post subject: find a solution?
PostPosted: Wed May 04, 2005 6:27 pm 
Newbie

Joined: Wed May 04, 2005 6:24 pm
Posts: 1
I'm dealing with the exact same situation. Have you found a solution for how to map this?

Thanks,
BB


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.