-->
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.  [ 2 posts ] 
Author Message
 Post subject: Cascade Mode
PostPosted: Wed Dec 17, 2003 2:29 am 
Beginner
Beginner

Joined: Thu Dec 04, 2003 3:47 am
Posts: 31
Location: Hong Kong
Sorry that I want to ask something about parent/child relationship (as we are strongly suggested to find out the answer by reading the reference document first)

About the cascade mode, it seems for me that there several different mode. I have some ideas on the effects on different cascade modes, but I don't have very clear definition or concept about the differences between, nor i can find it from the document. From what I know

cascade = "save-update" : save or update all associated objects when save(orupdate) an object
cascade = "delete" : delete all associated objects when delete an object
cascade = "all": "save-update" + "delete"
cascade = "all-delete-orphan": "all" + delete associated objects when it is unreferenced by the parent

But I'm not sure whether my understanding is correct and complete. Could anyone give some advises, or point me to the reference where I can find clearer understanding? Thank!

Eric


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 17, 2003 7:52 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Everything seems correct

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.