-->
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: extended many-to-many association
PostPosted: Wed Mar 23, 2005 10:41 am 
Newbie

Joined: Wed Mar 23, 2005 10:13 am
Posts: 1
Hello,
I have big problem with mapping specific association...maybe I describe my problem:

I have two tables:
1) Table: TASKS (idT,taskName,taskDescription)
PRIMARY KEY: idT
2) TABLE JOBS (idJ,jobName);

I can't use standard many-to-many mapping, because I need more information at intersection table....so I need third table that contains:
3) TABLE TASKJOBS(idT,idJ,orderT);
PRIMARY KEY: (idT,order)

I need this, because I need to store in database information about job's order in concrete Task....for example: TASK_1 has on first position job_1, on second job_2....on tenth job_10
...and I need to know where is conrete job used...I mean I have 5 tasks with job_1...so job_1 is used 5 times...

Maybe someone can resolve my problem....

Best regards

Krzychu


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.