olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chanda...@apache.org
Subject olingo-odata2 git commit: [OLINGO-766] Fix Deep insert link issue
Date Sat, 24 Oct 2015 08:29:55 GMT
Repository: olingo-odata2
Updated Branches:
  refs/heads/master 10d21f4f0 -> d56247a11


[OLINGO-766] Fix Deep insert link issue

Signed-off-by: Chandan V A <chandan.v.a@sap.com>

Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/d56247a1
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/d56247a1
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/d56247a1

Branch: refs/heads/master
Commit: d56247a112f8d291bb930452e7a6eb2646cf83b1
Parents: 10d21f4
Author: Chandan V A <chandan.v.a@sap.com>
Authored: Sat Oct 24 13:58:22 2015 +0530
Committer: Chandan V A <chandan.v.a@sap.com>
Committed: Sat Oct 24 13:58:22 2015 +0530

----------------------------------------------------------------------
 .../olingo/odata2/jpa/processor/core/access/data/JPAEntity.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/d56247a1/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 48ab4d9..07564d5 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
@@ -443,9 +443,9 @@ public class JPAEntity {
               relatedJPAEntityMap = new HashMap<String, List<Object>>();
             }
             List<Object> relatedJPAEntities = new ArrayList<Object>();
-            JPAEntity relatedEntity =
-                new JPAEntity((EdmEntityType) structuralType, edmRelatedEntitySet, oDataJPAContext);
             for (ODataEntry oDataEntry : relatedEntries) {
+              JPAEntity relatedEntity =
+                  new JPAEntity((EdmEntityType) structuralType, edmRelatedEntitySet, oDataJPAContext);
               relatedEntity.setParentJPAEntity(this);
               relatedEntity.setViaNavigationProperty(navProperty);
               relatedEntity.create(oDataEntry);


Mime
View raw message