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
|