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 code to migrate. Create the new rels building on the existing ones and the remove those not longer needed mobile mail please excuse brevity and typos Am 16.08.2011 um 00:41 schrieb "etc1" <e...@nextideapartners.com>: > 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. > > After 6 months of running in production, we now need to capture phone > numbers and email addresses, so we decide to create a new entity, > ContactInfo > > > ---(BY_ADDRESS)---> Address > Person ---(CONTACT_BY)---> ContactInfo ---(BY_PHONE) --->Phone > > ---(BY_EMAIL) ---> Email > > > So we introduced a new entity, ContactInfo, which has relationships to > Address, Phone, and Email entities. > > My question is, since Address was originally related to Person but is now > related to ContactInfo via Person, does neo4j automatically pick up the > address details from the ContactInfo relationship for all Persons who used > the prior relationship? This is important because change is inevitable, so I > want to make sure existing data is not "lost" simply because a relationship > was re-mapped in the java object hierarchy. > > > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user