AnsweredAssumed Answered

child association trouble

Question asked by mzaranto on Jan 25, 2010
Latest reply on May 8, 2010 by cristian
Hi to everyone!
I was trying to model a parent-child association, in order to get automatic cascade when deleting or moving the parent. This is the code of the custom model:


                                        <child-association name="custom:associationName">
                                                <title>Allegati</title>
                                                <source>
                                                        <mandatory>false</mandatory>
                                                        <many>false</many>
                                                </source>
                                                <target>
                                                        <class>custom:otherCustomType</class>
                                                        <mandatory>false</mandatory>
                                                        <many>true</many>
                                                </target>
                                                <duplicate>false</duplicate>
                                                <propagateTimestamps>true</propagateTimestamps>
                                        </child-association>

Sadly, cascading delete isn't working :( Am I missing something? Is it because I am omitting the "role" tag on source and target (by the way, what's the purpose of naming roles)?

Looking forward to your answers…

Marco

Outcomes