diff --git a/src/docbkx/reference/programming-model/relationships.xml b/src/docbkx/reference/programming-model/relationships.xml index 4f89d62ec..5e976aba4 100644 --- a/src/docbkx/reference/programming-model/relationships.xml +++ b/src/docbkx/reference/programming-model/relationships.xml @@ -60,10 +60,19 @@ public class Actor { relationship of a given type between any two given entities. + + Before an entity has been attached with persist() for the first time, it will + not have its state managed by Spring Data Graph. For example, given the Actor class defined above, + if actor.movies was accessed in a non-persisted entity, it would return + null, whereas if it was accessed in a persisted entity, it would return + an empty managed set. + + + By setting direction to BOTH, relationships are created in the outgoing direction, but when the 1:N field is read, it will include relationships in both directions. A cardinality of M:N is not necessary because relationships can be navigated in both directions. - + The relationships can also be accessed by using the aspect-introduced methods entity.getRelationshipTo(target, type) and