Regular |
 |
Joined: Thu Jul 01, 2004 12:13 am Posts: 68 Location: San Diego, CA
|
I have a Object A which has a composite relation with Object B and I have Object C which has a composite relation with Object B. I do a save on Object A, but because I have cascade="all" on the relation, it goes to Object B and tries to persist it's elements. Unfortunately, Object B has a reference to Object C which has not been persisted yet and results in a "persist transient object" error.
I am wondering if a cascading save is even possible or most I save all the "higher" level objects first so the children can reference them? The latter seems unruly when dealing with a large object graph.
Thanks,
Lou
|
|