spring-data-graph

Unable to find neo4j-cypher-dsl version 1.9.M04 anywhere

佐手、 提交于 2020-01-02 22:07:09
问题 org.springframework.data:spring-data-neo4j:2.2.1.RELEASE depends on neo4j-cypher-dsl:org.neo4j:1.9.M04 but I am unable to find this dsl artifact in any public mvn repositories. Any idea on where to get this jar? 回答1: Found this in neo4j repo here http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-cypher-dsl/1.9.M04/ 来源: https://stackoverflow.com/questions/16653128/unable-to-find-neo4j-cypher-dsl-version-1-9-m04-anywhere

Lazy/Eager loading/fetching in Neo4j/Spring-Data

徘徊边缘 提交于 2019-12-28 12:28:13
问题 I have a simple setup and encountered a puzzling (at least for me) problem: I have three pojos which are related to each other: @NodeEntity public class Unit { @GraphId Long nodeId; @Indexed int type; String description; } @NodeEntity public class User { @GraphId Long nodeId; @RelatedTo(type="user", direction = Direction.INCOMING) @Fetch private Iterable<Worker> worker; @Fetch Unit currentUnit; String name; } @NodeEntity public class Worker { @GraphId Long nodeId; @Fetch User user; @Fetch

Lazy/Eager loading/fetching in Neo4j/Spring-Data

可紊 提交于 2019-12-28 12:28:12
问题 I have a simple setup and encountered a puzzling (at least for me) problem: I have three pojos which are related to each other: @NodeEntity public class Unit { @GraphId Long nodeId; @Indexed int type; String description; } @NodeEntity public class User { @GraphId Long nodeId; @RelatedTo(type="user", direction = Direction.INCOMING) @Fetch private Iterable<Worker> worker; @Fetch Unit currentUnit; String name; } @NodeEntity public class Worker { @GraphId Long nodeId; @Fetch User user; @Fetch

Paging with Spring Data Graph/Neo4j

[亡魂溺海] 提交于 2019-12-23 19:12:00
问题 Is it possible to fetch Page results when using Spring Data Graph (Neo4J) as the data store? The findAll(Pageable) seems to be the only Pageable query availalble when using the GraphRepository . What I am looking for is Pageable APIs for other findBy***() like queries. Perhaps, there may be a completely different (recommended) way to Page results using Spring Data Graph. Thoughts on that are welcome as well! 回答1: Spring Data Neo4j (2.0 currently in SNAPSHOT but soon RC1) added Page support

@Query shortestPath return type in Spring Data Neo4j

此生再无相见时 提交于 2019-12-07 14:42:08
问题 What's the return Type of the following query and how do I use it? I tried several things like Path , Iterable<Path> , and others but I always hit some sort of exceptions. It seems to be a LinkedHashMap but are there any other handier object types that I can use? @Query( "START u1=node:User(key= {0}), u2=node:User(key = {1}) " + "MATCH p = shortestPath(u1-[*]-u2) " + "RETURN p") public ??? findShortestPath(String u1, String u2); Am I missing any dependencies? This is the only one that I'm

Spring data neo4j aspectJ setup error

痴心易碎 提交于 2019-12-06 11:21:48
问题 I can setup spring data and neo4j in STS but I would like to also take advantage of the aspectJ capabilities provided by Spring data. I have checked and used the Cineasts example as a helper example but it seems that I cannot setup correctly my project, the steps I do are: Create new maven application. Add the provided addons on pom.xml. The problem I am facing is that in every class in my project at the package declaration there is an error that states can't determine annotations of missing

Unable to find neo4j-cypher-dsl version 1.9.M04 anywhere

时间秒杀一切 提交于 2019-12-06 09:30:30
org.springframework.data:spring-data-neo4j:2.2.1.RELEASE depends on neo4j-cypher-dsl:org.neo4j:1.9.M04 but I am unable to find this dsl artifact in any public mvn repositories. Any idea on where to get this jar? Found this in neo4j repo here http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-cypher-dsl/1.9.M04/ 来源: https://stackoverflow.com/questions/16653128/unable-to-find-neo4j-cypher-dsl-version-1-9-m04-anywhere

@Query shortestPath return type in Spring Data Neo4j

不羁岁月 提交于 2019-12-05 18:54:15
What's the return Type of the following query and how do I use it? I tried several things like Path , Iterable<Path> , and others but I always hit some sort of exceptions. It seems to be a LinkedHashMap but are there any other handier object types that I can use? @Query( "START u1=node:User(key= {0}), u2=node:User(key = {1}) " + "MATCH p = shortestPath(u1-[*]-u2) " + "RETURN p") public ??? findShortestPath(String u1, String u2); Am I missing any dependencies? This is the only one that I'm using: <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j-rest<

use WrappingNeoServerBootstrapper with spring-data-neo4j

点点圈 提交于 2019-11-29 08:59:28
Is it possible to use the WrappingNeoServerBootstrapper with spring-data-neo4j? When using an embedded database without spring-data-neo4j, one can use a WrappingNeoServerBootstrapper to enable the REST-interface and the Webadmin. I use spring-data-neo4j and an embedded db ( <neo4j:config storeDirectory="target/graph.db"/> in spring context) and would like to use the webadmin and rest-interface. Is there any way to accomplish this? I am also wondering if spring-data-neo4j-rest handles transactions? That should be no problem. The config below is not tested, but should work and give you an idea

Lazy/Eager loading/fetching in Neo4j/Spring-Data

你离开我真会死。 提交于 2019-11-28 07:36:01
I have a simple setup and encountered a puzzling (at least for me) problem: I have three pojos which are related to each other: @NodeEntity public class Unit { @GraphId Long nodeId; @Indexed int type; String description; } @NodeEntity public class User { @GraphId Long nodeId; @RelatedTo(type="user", direction = Direction.INCOMING) @Fetch private Iterable<Worker> worker; @Fetch Unit currentUnit; String name; } @NodeEntity public class Worker { @GraphId Long nodeId; @Fetch User user; @Fetch Unit unit; String description; } So you have User-Worker-Unit with a "currentunit" which marks in user