Database Reference
In-Depth Information
@RelatedToVia : This annotation is used for the fields to define the type of re-
lationship within the node entity. It provides the read-only iterator for iterating
over the related entities fetched while reading data from the database. For ex-
ample, we can define a collection in Artist.java and define the relationship
with the Movie object, so that when we read the Artist object, we also read
the related Movies :
@RelatedToVia(type="ACTED_IN",direction=Direction.OUTGOING)
private Iterable<Role> roles;
It can be applied only to the classes that are annotated with @Relation-
shipEntity .
Neo4jTemplate defines various convenience methods for performing CRUD and
search operations. Refer to http://docs.spring.io/autorepo/docs/spring-data-neo4j/3.2.x/api/
org/springframework/data/neo4j/support/Neo4jTemplate.html for complete details about
the other methods exposed by Neo4jTemplate.
Search WWH ::




Custom Search