You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2015/11/17 17:38:58 UTC
svn commit: r1714831 -
/olingo/site/trunk/content/doc/odata4/tutorials/deep_insert/tutorial_deep_insert.mdtext
Author: chrish
Date: Tue Nov 17 16:38:58 2015
New Revision: 1714831
URL: http://svn.apache.org/viewvc?rev=1714831&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=1714831&r1=1714830&r2=1714831&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 16:38:58 2015
@@ -96,7 +96,11 @@ When our implementation has processed th
![After Deep insert](after.png)
-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`.
+If one of the requests fail, or one of the binding links is invalid, none of the entities must be created.
+The prepared implementation provides the methods `beginTransaction`, `rollbackTransaction` and `commitTransaction` in the data store to simulate a transactional behavior.
+Those methods are called in the `DemoEntityProcessor` implementation. So if you throw an exception in the createEntity Method the transaction will automatically rolled back.
+
+So let us begin with the implementation. 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: