cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] [Created] (CAY-1947) Extraneous UPDATE on phantom toOne
Date Fri, 29 Aug 2014 14:50:54 GMT
Andrus Adamchik created CAY-1947:

             Summary: Extraneous UPDATE on phantom toOne
                 Key: CAY-1947
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 3.2M1
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
            Priority: Minor

in a 1..N relationship, where there's no corresponding N..1 on the object side, a phantom
update (same to-one set twice) causes an UPDATE query that is essentially a noop. See
This comes down to the fact that we do not analyze "phantomFks" inside ObjectDiff.isNoop(..).
(Or maybe when we resolve to-many and find phantom objects are already in it, we should unregister
a change from ObjectStore?)

This message was sent by Atlassian JIRA

View raw message