spring-data-neo4j-5

Spring Data Neo4j 5 update dynamic properties

大兔子大兔子 提交于 2019-12-24 09:05:55
问题 I have the following entity: @NodeEntity public class Value { @Properties(prefix = "property", allowCast = true) private Map<String, Object> properties; } I have added the following properties: Map<String, Object> properties1 = new HashMap<>(); properties.put("key1", "one"); properties.put("key2", "two"); value.setProperties(properties1); Right now on the database level, I have the Value node with two properties: property.key1 = "one" property.key2 = "two" Now, I'd like to update the

spring data neo4j 5 - no bean named 'sessionFactory' available

断了今生、忘了曾经 提交于 2019-12-12 12:28:11
问题 I'm using spring data neo4j (5.0.7.RELEASE) and spring (5.0.6.RELEASE) with configuration from the docs https://github.com/spring-projects/spring-data-neo4j#quick-start When I try to start the application it fails with this exception: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sharedSessionCreatorBean': Cannot resolve reference to bean 'sessionFactory' while setting constructor argument; nested exception is org.springframework.beans

Spring Data | Neo4J | Querying for the path in the correct order

北城余情 提交于 2019-12-12 04:38:15
问题 Versions: <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-ogm-core</artifactId> <version>2.1.1</version> </dependency> <dependency> <!-- If you're using the HTTP driver --> <groupId>org.neo4j</groupId> <artifactId>neo4j-ogm-http-driver</artifactId> <version>2.1.1</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-neo4j --> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j</artifactId> <version>4