:tutorials:intro:ten-minutes refine snippets

Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/cb9d8dc2
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/cb9d8dc2
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/cb9d8dc2

Branch: refs/heads/develop
Commit: cb9d8dc2946e530123cf6a519baa98d0afd7a427
Parents: 3af7f5b
Author: Paul Merlin <[email protected]>
Authored: Mon May 15 09:25:03 2017 +0200
Committer: Paul Merlin <[email protected]>
Committed: Mon May 15 09:25:03 2017 +0200

----------------------------------------------------------------------
 tutorials/introduction/tenminutes/src/docs/ten-minutes.txt     | 5 ++---
 .../java/org/apache/polygene/demo/tenminute/OrderEntity.java   | 6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/cb9d8dc2/tutorials/introduction/tenminutes/src/docs/ten-minutes.txt
----------------------------------------------------------------------
diff --git a/tutorials/introduction/tenminutes/src/docs/ten-minutes.txt 
b/tutorials/introduction/tenminutes/src/docs/ten-minutes.txt
index ba4c99e..7aa14ba 100644
--- a/tutorials/introduction/tenminutes/src/docs/ten-minutes.txt
+++ b/tutorials/introduction/tenminutes/src/docs/ten-minutes.txt
@@ -68,9 +68,8 @@ We can also see that the InventoryService is provided to the 
concern, which is d
 also supports dependency injection via constructors and methods.
 
 The above example is obviously doing persistence, and we have no code handling 
this. But Polygene™ supports persistence
-directly in its Core, and it is taken care of by Polygene™, since it is 
declared as an EntityComposite.
-Nothing else is needed, provided that the Polygene™ Runtime has been setup 
with one or more persisted EntityStores. But
-we have a naming convention that EntityComposites have "Entity" as the suffix 
in its name.
+directly in its Core, and it is taken care of by Polygene™.
+Nothing else is needed, provided that the Polygene™ Runtime has been setup 
with one or more persisted EntityStores.
 
 There are other built-in Composite subtypes as well, such as ValueComposite 
and ServiceComposite. This distinction helps
 both to communicate intent as well as having more precisely defined 
functionality.

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/cb9d8dc2/tutorials/introduction/tenminutes/src/main/java/org/apache/polygene/demo/tenminute/OrderEntity.java
----------------------------------------------------------------------
diff --git 
a/tutorials/introduction/tenminutes/src/main/java/org/apache/polygene/demo/tenminute/OrderEntity.java
 
b/tutorials/introduction/tenminutes/src/main/java/org/apache/polygene/demo/tenminute/OrderEntity.java
index b6b586d..b1ab55f 100644
--- 
a/tutorials/introduction/tenminutes/src/main/java/org/apache/polygene/demo/tenminute/OrderEntity.java
+++ 
b/tutorials/introduction/tenminutes/src/main/java/org/apache/polygene/demo/tenminute/OrderEntity.java
@@ -21,7 +21,7 @@
 package org.apache.polygene.demo.tenminute;
 
 import org.apache.polygene.api.concern.Concerns;
-import org.apache.polygene.api.entity.EntityComposite;
+import org.apache.polygene.api.identity.HasIdentity;
 import org.apache.polygene.api.sideeffect.SideEffects;
 
 // START SNIPPET: sideEffect
@@ -31,8 +31,8 @@ import org.apache.polygene.api.sideeffect.SideEffects;
 public interface OrderEntity
     extends Order, Confirmable,
             HasSequenceNumber, HasCustomer, HasLineItems,
-            EntityComposite
+            HasIdentity
 {
-// END SNIPPET: sideEffect
 }
+// END SNIPPET: sideEffect
 // END SNIPPET: mainClass

Reply via email to