Database Reference
In-Depth Information
org.springframework.data.neo4j.aspects.core.RelationshipBacked
for
@RelationshipEntity
.
Further, these new interfaces are implemented by the aspects provided by Spring. For ex-
ample,
NodeBacked
is implemented by
Neo4jNodeBacking
and
Relation-
shipBacked
is implemented by
Neo4jRelationshipBacking
.
You can find all these aspects under
org.springframework.data.neo4j.aspects
and the source can be down-
loaded from GitHub at
https://github.com/spring-projects/spring-data-neo4j/tree/master/
All these aspects are injected as dependencies to the backing interfaces, and in some
cases, calls to methods are intercepted and delegated to the specific implementations of
the graph databases. Spring also introduces new methods and properties to the annotated
classes.
Perform the following steps to enable advanced mapping mode in your Spring project:
1. Edit your
Spring-Neo4j/pom.xml
and add the following Maven plugin to
include the AspectJ compilation just before the
</project>
tag:
<plugins>
<build><plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<outxml>true</outxml>
<aspectLibraries>
<aspectLibrary>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</aspectLibrary>
<aspectLibrary>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j-aspects</artifactId>
</aspectLibrary>