You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Reinhard Fuchs (JIRA)" <ji...@apache.org> on 2015/07/21 13:00:08 UTC

[jira] [Created] (OLINGO-736) JPAEntity does not update null values

Reinhard Fuchs created OLINGO-736:
-------------------------------------

             Summary: JPAEntity does not update null values
                 Key: OLINGO-736
                 URL: https://issues.apache.org/jira/browse/OLINGO-736
             Project: Olingo
          Issue Type: Bug
          Components: odata2-jpa
    Affects Versions: V2 2.0.4
         Environment: Windows 7 64bit, Google Chrome 43.0.2357.134, JDK 1.8.0_51
            Reporter: Reinhard Fuchs
            Priority: Minor


In "setProperty" there is an condition regarding null values ("if (entityPropertyValue != null) ". This condition prevents database simple type values being updateted with null value. According the OData Specification in Point 3.3 (http://www.odata.org/documentation/odata-version-2-0/operations/) this should work.
Please complete this condition with an else:
else {
    	method.invoke(entity, entityPropertyValue);
    }



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