|
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
|