Spring Data Neo4j注解
注解 | 描述 |
---|---|
@NodeEntity | Node,默认Label为类名 |
@RelattionShipEntity | RelationShip,默认type为类名,一般而言,带属性的relationShip(rich relationShip)才有必要建立RelationShipEntity |
@StartNode | |
@EndNode | |
@Fetch | |
@GraphId | neo4j ID |
@GraphProperties | |
@GraphTraversal | |
@Indexed | 声明某个属性应该被索引(schema indexing) |
@Labels | Label |
@Query | |
@QueryResult | |
@RelatedTo | Set/List/Collection/Iterable (read-only)/ |
@RelatedToVia | Set/List/Collection/Iterable (read-only)/ |
@RelationShipType | ReletionShipType |
@ResultColumn |
GraphDatabaseService
org.springframework.data.neo4j.repository.support.SimpleNeo4jRepository<T, ID>