You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Joseph Li (Jira)" <ji...@apache.org> on 2019/09/27 15:23:00 UTC
[jira] [Created] (OLINGO-1401) Add ability to write navigation
properties when contentonly set to true
Joseph Li created OLINGO-1401:
---------------------------------
Summary: 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
Client use case:
EntityProvider.writeEntry(resultContentType,entitySet, postData, properties)
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/e8ec21c40efe29c9ac0aaee507e905ff69dc249c/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/producer/JsonEntryEntityProducer.java#L89] and only additionallinks are written.
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?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)