From dev-return-10398-archive-asf-public=cust-asf.ponee.io@olingo.apache.org Fri Sep 27 15:23:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9D08C180663 for ; Fri, 27 Sep 2019 17:23:04 +0200 (CEST) Received: (qmail 5775 invoked by uid 500); 27 Sep 2019 15:23:04 -0000 Mailing-List: contact dev-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 dev@olingo.apache.org Received: (qmail 5763 invoked by uid 99); 27 Sep 2019 15:23:03 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2019 15:23:03 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C24FEE3163 for ; Fri, 27 Sep 2019 15:23:02 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 5FA03780868 for ; Fri, 27 Sep 2019 15:23:00 +0000 (UTC) Date: Fri, 27 Sep 2019 15:23:00 +0000 (UTC) From: "Joseph Li (Jira)" To: dev@olingo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OLINGO-1401) Add ability to write navigation properties when contentonly set to true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OLINGO-1401?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph Li updated OLINGO-1401: ------------------------------ Description:=20 Client use case: EntityProvider.writeEntry(resultContentType,entitySet, postData, properties= ) =C2=A0 Currently, to POST a new entry where the ID is server generated we can set = the [contentOnly flag to true|https://issues.apache.org/jira/browse/OLINGO-= 308?focusedCommentId=3D14044626&page=3Dcom.atlassian.jira.plugin.system.iss= uetabpanels%3Acomment-tabpanel#comment-14044626]. But if contentOnly flag is true, [navigationProperties are skipped|https://= github.com/apache/olingo-odata2/blob/e8ec21c40efe29c9ac0aaee507e905ff69dc24= 9c/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/pro= ducer/JsonEntryEntityProducer.java#L89] and only additionallinks are writte= n. This is preventing us from performing deep inserts where the related entity= also have IDs taht are server generated. Can we create an option where navigation properties can still be written if= contentonly is set to true? =C2=A0 was: Client use case: EntityProvider.writeEntry(resultContentType,entitySet, postData, properties= ) =C2=A0 Currently, to POST a new entry where the ID is server generated we can set = the contentOnly flag to true. But if contentOnly flag is true, [navigationProperties are skipped|https://= github.com/apache/olingo-odata2/blob/e8ec21c40efe29c9ac0aaee507e905ff69dc24= 9c/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/pro= ducer/JsonEntryEntityProducer.java#L89] and only additionallinks are writte= n. This is preventing us from performing deep inserts where the related entity= also have IDs taht are server generated. Can we create an option where navigation properties can still be written if= contentonly is set to true? =C2=A0 > Add ability to write navigation properties when contentonly set to true > ----------------------------------------------------------------------- > > Key: OLINGO-1401 > URL: https://issues.apache.org/jira/browse/OLINGO-1401 > Project: Olingo > Issue Type: Improvement > Components: odata2-core > Affects Versions: V2 2.0.11 > Reporter: Joseph Li > Priority: Major > > Client use case: > EntityProvider.writeEntry(resultContentType,entitySet, postData, properti= es) > =C2=A0 > Currently, to POST a new entry where the ID is server generated we can se= t the [contentOnly flag to true|https://issues.apache.org/jira/browse/OLING= O-308?focusedCommentId=3D14044626&page=3Dcom.atlassian.jira.plugin.system.i= ssuetabpanels%3Acomment-tabpanel#comment-14044626]. > But if contentOnly flag is true, [navigationProperties are skipped|https:= //github.com/apache/olingo-odata2/blob/e8ec21c40efe29c9ac0aaee507e905ff69dc= 249c/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/p= roducer/JsonEntryEntityProducer.java#L89] and only additionallinks are writ= ten. > This is preventing us from performing deep inserts where the related enti= ty also have IDs taht are server generated. > Can we create an option where navigation properties can still be written = if contentonly is set to true? > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)