[
https://issues.apache.org/jira/browse/OLINGO-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Serban Petrescu updated OLINGO-736:
-----------------------------------
Attachment: OLINGO_736.patch
I provided an implementation that fixes this issue (as I also encountered it a
couple of time). The patch is attached.
> 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
> Assignee: Chandan V.A
> Priority: Minor
> Attachments: OLINGO_736.patch
>
>
> In "JPAEntity.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.15#6346)