Oh man do I feel stupid - thank you both. The IMDB tutorial was so good I created a project without fully reading the API docs.
Regards, Jon On Tue, Nov 29, 2011 at 10:54 PM, Michael Hunger < michael.hun...@neotechnology.com> wrote: > you can also use > rel.getOtherNode(startNode) > > Michael > > mobile mail please excuse brevity and typos > > Am 30.11.2011 um 06:03 schrieb Jim Webber <j...@neotechnology.com>: > > > Hi Jon, > > > > // This one results in a not found exception on the 'asn' property. > > @Test > > public void testIncoming() > > { > > > > Node network = svc.createNode(); > > Node as = svc.createNode(); > > as.setProperty( "asn", "123" ); > > > > as.createRelationshipTo( network, > DynamicRelationshipType.withName( "AS" ) ); > > > > System.out.println( network.getSingleRelationship( > IPAddressRelationshipType.AS, Direction.INCOMING ) > > .getStartNode() > > // It's the start node of the incoming relationship, > which is the same as the end node of the outgoing relationship > > .getProperty( "asn" ) ); > > > > } > > > > > > You got the start and end node wrong - I changed that and your test ran > just fine. > > > > Good luck with your first project - I hope it's as enjoyable as my first > Neo4j project :-) > > > > Jim > > _______________________________________________ > > 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 > _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user