Return-Path: X-Original-To: apmail-olingo-commits-archive@minotaur.apache.org Delivered-To: apmail-olingo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9018A1882A for ; Sat, 24 Oct 2015 08:29:55 +0000 (UTC) Received: (qmail 43264 invoked by uid 500); 24 Oct 2015 08:29:55 -0000 Delivered-To: apmail-olingo-commits-archive@olingo.apache.org Received: (qmail 43245 invoked by uid 500); 24 Oct 2015 08:29:55 -0000 Mailing-List: contact commits-help@olingo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@olingo.apache.org Delivered-To: mailing list commits@olingo.apache.org Received: (qmail 43236 invoked by uid 99); 24 Oct 2015 08:29:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Oct 2015 08:29:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 45CD6DFE61; Sat, 24 Oct 2015 08:29:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: chandanva@apache.org To: commits@olingo.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: olingo-odata2 git commit: [OLINGO-766] Fix Deep insert link issue Date: Sat, 24 Oct 2015 08:29:55 +0000 (UTC) Repository: olingo-odata2 Updated Branches: refs/heads/master 10d21f4f0 -> d56247a11 [OLINGO-766] Fix Deep insert link issue Signed-off-by: Chandan V A 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 Authored: Sat Oct 24 13:58:22 2015 +0530 Committer: Chandan V A 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>(); } List relatedJPAEntities = new ArrayList(); - 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);