You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by "Steve Clark (JIRA)" <ji...@apache.org> on 2005/05/09 19:33:05 UTC

[jira] Created: (OJB-41) Cascading delete for ODMG

Cascading delete for ODMG
-------------------------

         Key: OJB-41
         URL: http://issues.apache.org/jira/browse/OJB-41
     Project: OJB
        Type: New Feature
  Components: ODMG-API  
    Reporter: Steve Clark


The docs for the ODMG API have always said that auto-delete must be set to "false" in order for the ODMG API to work correctly.  However, it has always worked fine to go ahead and set auto-delete="link" or "object", and a cascading delete configurable at the individual reference level has been unofficially available.

With the rewrite of the ODMG layer, it appears that this unofficial cascading delete has been removed, and has been replaced with bizarre and completely useless solution based on the category of reference, with all 1:1 references treated same, all 1:n treated the same, and all m:n treated the same.  The impact on our existing codebase is huge, as it requires us to go back and write a complete OJB-aware cascading delete for every dataobject in our library.

Can we please have the old behavior back?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


[jira] Resolved: (OJB-41) Cascading delete for ODMG

Posted by "Armin Waibel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OJB-41?page=all ]
     
Armin Waibel resolved OJB-41:
-----------------------------

    Fix Version: 1.0.4
     Resolution: Fixed
      Assign To: Armin Waibel

Now it's allowed to set auto-delete="object" in reference/collection-descriptor to enable cascading delete. Additional it's possible to set/override this setting at runtime using TransactionExt#setCascadingDelete(...) methods.

> Cascading delete for ODMG
> -------------------------
>
>          Key: OJB-41
>          URL: http://issues.apache.org/jira/browse/OJB-41
>      Project: OJB
>         Type: New Feature
>   Components: ODMG-API
>     Reporter: Steve Clark
>     Assignee: Armin Waibel
>      Fix For: 1.0.4

>
> The docs for the ODMG API have always said that auto-delete must be set to "false" in order for the ODMG API to work correctly.  However, it has always worked fine to go ahead and set auto-delete="link" or "object", and a cascading delete configurable at the individual reference level has been unofficially available.
> With the rewrite of the ODMG layer, it appears that this unofficial cascading delete has been removed, and has been replaced with bizarre and completely useless solution based on the category of reference, with all 1:1 references treated same, all 1:n treated the same, and all m:n treated the same.  The impact on our existing codebase is huge, as it requires us to go back and write a complete OJB-aware cascading delete for every dataobject in our library.
> Can we please have the old behavior back?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org