Author: chrish
Date: Tue Nov 17 15:41:54 2015
New Revision: 1714813
URL: http://svn.apache.org/viewvc?rev=1714813&view=rev
Log:
CMS commit to olingo by chrish
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/deep_insert/tutorial_deep_insert.mdtext
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/deep_insert/tutorial_deep_insert.mdtext
URL:
http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/deep_insert/tutorial_deep_insert.mdtext?rev=1714813&r1=1714812&r2=1714813&view=diff
==============================================================================
---
olingo/site/trunk/content/doc/odata4/tutorials/deep_insert/tutorial_deep_insert.mdtext
(original)
+++
olingo/site/trunk/content/doc/odata4/tutorials/deep_insert/tutorial_deep_insert.mdtext
Tue Nov 17 15:41:54 2015
@@ -89,6 +89,13 @@ To express the relation between two enti
The same can be done for bindings via the method [`getNavigationBinding(String
name)`](http://olingo.apache.org/javadoc/odata4/org/apache/olingo/commons/api/data/Linked.html#getNavigationBinding(java.lang.String)).
The values of the Binding can be gotten by the methods
[`getBindingLink()`](http://olingo.apache.org/javadoc/odata4/org/apache/olingo/commons/api/data/Link.html#getBindingLink())
and
[`getBindingLinks()`](http://olingo.apache.org/javadoc/odata4/org/apache/olingo/commons/api/data/Link.html#getBindingLinks()).
The point is that the Entity deserializer uses the same concept to represent
the payload as Java objects.
+Please have a look at the figure below. The deserializer returns an entity
with two aggregated Link Objects which belons to the same navigation property
"Product". The upper Link object stores the related entites, which have to be
created. The lower Link contains the entity-ids to the already existing
entities.
+
+
+When our implementation has processed the whole request, all entites are
created and linked as **navigationLinks**.
+
+
+
In the previous tutorials the entity object returned by the deserializer is
passed to the data store. Please open the class
`myservice.mynamespace.data.Storage` and jump the method `createEntity`.
The implementation should look like the following: