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: Mapping different Collections to the same Table
PostPosted: Tue Nov 08, 2005 3:59 pm 
Beginner
Beginner

Joined: Tue May 17, 2005 11:42 am
Posts: 22
I would like to know if this it's possible.
I have an Addresses Database, and both customers and providers have different addresses, but they should map to the same table, since they hold the same data.
If I map the collection with a <set one-to-many>, I think it would probably end duplicating entries, because it would not be able to distinguish the collection items, and their real parents.
I'm trying to avoid adding an id field for each collection mapped to this table.
Is there any neater way to implement this behaviour?
Thanks


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.