The entities just make the existing data in the graph available. With the
configured/mapped rels. If you want to have different mappings in you entity
you have to provide them in the graph first.
This can be achieved by a two step process first add the new mappings to the
entities and use java
Hypothetical example, let's say I'm building a system and I want to capture
Person and Address entities, I might model it like this
Person ---(RESIDES_AT)--- Address
Assume that the relationship is bi-directionally, so whether I have a person
or address entity, I can always find the other.
All your existing relationships will remain the same, unless you remove them
yourself.
If you make your hypothetical changes, all Persons will keep a relationship to
Address through the RESIDES_AT relationship, even though you now create a new
ContactInfo entity that connects to Address too.
OK, but after making changes to the relationships, does the graph service
automatically allow me to navigate from Person to ContactInfo to Address?
-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of Niels Hoogeveen
Sent: Monday, August
Relationships can't be changed. They are created from one Node to another Node
with a certain RelationshipType, and can only be removed..
All Relationships you create can be navigated.
If your original code did something like:
person.getSingleRelationship(RESIDES_AT,
5 matches
Mail list logo