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: Need Help - mappings
PostPosted: Sun May 01, 2005 3:41 am 
Newbie

Joined: Sun May 01, 2005 3:27 am
Posts: 1
Hi,
Need some help creating a mapping file for hibernate 2. I have a structure similar to this.

class TeamMember {
...
Project myPrimaryProject;
Project mySecondaryProject;
}

class Project {
....
}

I need this to translate to following table structure.
teammember(..., primary_project_id, secondary_project_id);
project(...);

Note: When i persist teammember, i need it to create records in project
table aswell and use the associated keys in the teammember table.
Any delete's on teammember should delete projects.

Would appreciate any help.

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.