You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2016/02/29 10:50:18 UTC

[jira] [Resolved] (OLINGO-848) Client-Proxy: getting a property of an entity flags the entity as changed

     [ https://issues.apache.org/jira/browse/OLINGO-848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Amend resolved OLINGO-848.
------------------------------------
       Resolution: Fixed
         Assignee: Christian Amend
    Fix Version/s: (Java) V4 4.2.0

> Client-Proxy: getting a property of an entity flags the entity as changed
> -------------------------------------------------------------------------
>
>                 Key: OLINGO-848
>                 URL: https://issues.apache.org/jira/browse/OLINGO-848
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-ext
>    Affects Versions: (Java) V4 4.1.0
>            Reporter: Frederik Zimmer
>            Assignee: Christian Amend
>             Fix For: (Java) V4 4.2.0
>
>         Attachments: OLINGO848-getting-a-property-of-an-entity-flags-the-.patch
>
>
> An entity is loaded and a getter is called on the entity. This results to a call of getPropertyValue in AbstractStructuredInvocationHandler. When a value is found, the value is cached and it is added to the list of property changes:
> if (res != null) {
> addPropertyChanges(name, res);
> propertyCache.put(name, res);
> }
> As a result EntityInvocationHandler.isChanged claims that the entity is changed and a flush would try to update the entity on the server.
> Retrieving a property of an entity should not flag the entity as changed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)