Beginner |
 |
Joined: Fri Nov 13, 2009 4:05 pm Posts: 30
|
Could someone take a brief moment and outline how to properly annotation three classes where you have a parent, child and grandchild relationship. The parent contains a list of children while the children contain a list of grandchildren objects. The child and grandchild objects use a composite key where the child is a combination of a sequence and the parent id while the grandchild is a combination of a sequence, child and parent ids.
What I need to be able to do is once a grandchild record is added to the child's list and the child is added to the parent; I can safely save the parent and the records will all persist to the database in one single operation.
|
|