You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2014/01/04 09:42:22 UTC
git commit: [OLINGO-45] Normalize Inline entries for Update Operation
Updated Branches:
refs/heads/master f8638bb7a -> f2db566f2
[OLINGO-45] Normalize Inline entries for Update Operation
Project: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/commit/f2db566f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/tree/f2db566f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/diff/f2db566f
Branch: refs/heads/master
Commit: f2db566f2eb6868c7b715c7ad253671c61123b2f
Parents: f8638bb
Author: Chandan V A <ch...@sap.com>
Authored: Sat Jan 4 14:11:25 2014 +0530
Committer: Chandan V A <ch...@sap.com>
Committed: Sat Jan 4 14:11:50 2014 +0530
----------------------------------------------------------------------
.../olingo/odata2/jpa/processor/core/access/data/JPAEntity.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/blob/f2db566f/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntity.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntity.java b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntity.java
index 6d8651b..6a3ab60 100644
--- a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntity.java
+++ b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntity.java
@@ -212,10 +212,14 @@ public class JPAEntity {
.throwException(ODataJPARuntimeException.GENERAL, null);
}
Map<String, Object> oDataEntryProperties = oDataEntry.getProperties();
+ if(oDataEntry.containsInlineEntry()){
+ normalizeInlineEntries(oDataEntryProperties);
+ }
write(oDataEntryProperties, false);
}
public void update(final Map<String, Object> oDataEntryProperties) throws ODataJPARuntimeException {
+ normalizeInlineEntries(oDataEntryProperties);
write(oDataEntryProperties, false);
}