[ 
https://issues.apache.org/jira/browse/CAY-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837906#action_12837906
 ] 

Andrus Adamchik commented on CAY-1397:
--------------------------------------

Robert, this is a bug. If you delete an object but try to read its fields after 
delete but before commit they come back as NULL , with no attempt to resolve 
the object. Object state may be needed for callbacks, etc. Also DataContext 
does resolve an object before deletion already, while ROP CayenneContext does 
not. So there is an inconsistency.

Now an ideal solution would've been an extra persistence state 
(HOLLOW_DELETED), but for the time being reconciling ROP and server-side 
Cayenne seems reasonable.

> ROP: Missing the COMMIT state when deleting HOLLOW object
> ---------------------------------------------------------
>
>                 Key: CAY-1397
>                 URL: https://issues.apache.org/jira/browse/CAY-1397
>             Project: Cayenne
>          Issue Type: Bug
>          Components: ROP
>    Affects Versions: 3.0RC2
>            Reporter: Ksenia Khailenko
>         Attachments: 
> 0001-Fixed-not-resolving-of-hollow-objects-before-deleting.patch
>
>
> When deleting persistent object at HOLLOW state, it changes the state to 
> DELETED without resolving 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to