-->
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: Approaches to M-N with additional columns
PostPosted: Sat Dec 20, 2003 12:19 am 
Beginner
Beginner

Joined: Mon Sep 22, 2003 7:16 am
Posts: 25
When I first learnt using Hibernate, I implemented the M-N as two 1-N relations with the relation table as if a separate ordinary class. It works fine, so far.
I also found that there is another approach suggested in the tip & tricks of this site to implement the relation class as a composite element of the class ...

My questions are:
Do I have to built the composite elements (along with the same class name) on both side of the relation?
What differences (in comparing the two 1-N with composite element) would it made to the system, in terms of performance and difficulty on maintaining data?
When should a composite element be used?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.