-->
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: Using alternate column from parent class for many - many
PostPosted: Fri Feb 18, 2005 6:28 pm 
Newbie

Joined: Fri Feb 18, 2005 5:44 pm
Posts: 2
I have a table that has an OID, GROUP_ID and VERSION
As versions are made to the field ticket the oid is incremented and
the verison id is incremented. The group_id stays the same.

A second object is related to the first object through the
group_id foreign key. It has an OID, GROUP_ID, NAME, DESCRIPTION

My question, and I have looked in the forums and bought the
hibernate in action is how do I write the set/bag ? from the. I
looked through the book but do not see how to reference to a
different id for a many2many in the class. I would like to update
the values in the list as well from any of the version instances in
the parent.

Any help would be appreciated.

Philip.


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.