[jboss-user] [Beginner's Corner] - ManyToMany problem

swenu do-not-reply at jboss.com
Thu Oct 29 09:11:11 EDT 2009


Hi all

playing around with Seam and trying to fill a manytomany join table. Following situation: A person has multiple roles (based on work, not as a role known from the security). A role could have 0..n functions (specialised education). so i tried the follwing:

Role and Funtion joined on role_function (join table, for the moment only role_id and function_id, in future with a generated id) The qualification table contains person_id and role_function_id.

Now the questions:

1) How to autogenerate an role_function_id on assigning a function to a role?
2) Do i have to develop a seperate bean for the qualification?

Sorry if the question is clear for all. Searched for the answer and didn't find something which will helps out a newbie like me! Hope someone will clear my questions. Thanks in advance.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262947#4262947

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262947



More information about the jboss-user mailing list