From b1063da00c7d00ee361680f82485d05caf4e1bc5 Mon Sep 17 00:00:00 2001 From: Michael Hunger Date: Fri, 6 Aug 2010 03:54:53 +0200 Subject: [PATCH] handling of simple relationships, cleanup --- .classpath | 74 ++++++++++--------- .settings/org.eclipse.wst.common.component | 3 - .../graph/neo4j/Neo4jNodeBacking.aj | 61 +++++++++------ .../persistence/test/Person.java | 25 +++++++ .../test/graph/Neo4jGraphPersistenceTest.java | 14 ++++ 5 files changed, 117 insertions(+), 60 deletions(-) diff --git a/.classpath b/.classpath index 0db60442f..302ab6f5c 100644 --- a/.classpath +++ b/.classpath @@ -1,36 +1,40 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 015e47d6e..113dae8a8 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -2,8 +2,5 @@ - - - diff --git a/src/main/java/org/springframework/persistence/graph/neo4j/Neo4jNodeBacking.aj b/src/main/java/org/springframework/persistence/graph/neo4j/Neo4jNodeBacking.aj index 86b3add02..a828022b9 100644 --- a/src/main/java/org/springframework/persistence/graph/neo4j/Neo4jNodeBacking.aj +++ b/src/main/java/org/springframework/persistence/graph/neo4j/Neo4jNodeBacking.aj @@ -4,14 +4,13 @@ import java.lang.reflect.Field; import org.aspectj.lang.Signature; import org.aspectj.lang.reflect.FieldSignature; +import org.neo4j.graphdb.Direction; import org.neo4j.graphdb.DynamicRelationshipType; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.RelationshipType; import org.neo4j.util.GraphDatabaseUtil; - import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.persistence.graph.Direction; import org.springframework.persistence.graph.GraphEntity; import org.springframework.persistence.graph.Relationship; import org.springframework.persistence.support.AbstractTypeAnnotatingMixinFields; @@ -61,13 +60,17 @@ public aspect Neo4jNodeBacking extends AbstractTypeAnnotatingMixinFields Neo4J relationship with value=[" + newVal + "]"); return null; } @@ -163,16 +177,19 @@ public aspect Neo4jNodeBacking extends AbstractTypeAnnotatingMixinFields