-->
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: Help with SET/COMPONENT and mapping to multiple tables
PostPosted: Tue Jul 12, 2005 10:27 am 
Newbie

Joined: Thu Jun 30, 2005 10:35 am
Posts: 13
Hi, I am looking for advice on how to set up a fairly simple mapping which I'm having trouble with:

I have 2 tables - Agreement and Product - and 2 classes - ClassA and ClassB.
ClassA is directly mapped to the Product table and has a SET of B objects, but each instance af ClassA with EACH instance of ClassB is what constitutes one entity, so I think this is basically a COMPOSITE and a SET that have to be somehow nested together.
The problem is that Class B actually maps some columns to Agreement table and some to Product table.

So my question is this:
How do I nest the ClassB SET into the mappings as a COMPONENT of ClassA, and even more confusing to me, how do I then map ClassB to some columns in Product and some columns in Agreement?

Thanks in advance for any help. It's very much appreciated!


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.