-->
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: Understanding of Trasitive Persistence with Composition
PostPosted: Tue Jul 27, 2004 2:46 pm 
Regular
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


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.