spring-data-neo4j-4

Neo4j 3.0 and spring data

徘徊边缘 提交于 2019-12-22 11:09:06
问题 I would like to use the new bolt protocol to connect my spring application to neo4j 3.0 database. Is bolt protocol already implemented in spring data? 回答1: Yes, these versions support Bolt: Neo4j OGM 2.0.2, which can be used with SDN 4.1.1.RELEASE (you will need to explicitly include this Neo4j OGM version). Or the current SDN snapshot 4.2.0.BUILD-SNAPSHOT which depends on the latest Neo4j OGM snapshot. The Bolt Driver dependency is also required: <dependency> <groupId>org.neo4j</groupId>

spring-boot upgrade from 1.3.2 to 1.3.3: logback issue

独自空忆成欢 提交于 2019-12-22 02:30:11
问题 We've hit an issue when upgrading from spring-boot 1.3.2 to the recently released 1.3.3. Our application has been making use of the following dependencies, each the latest, without issue: <neo4j.version>2.3.2</neo4j.version> <sdn.version>4.0.0.RELEASE</sdn.version> <sdn.rest.version>3.4.0.RELEASE</sdn.rest.version> <neo4j.ogm.version>1.1.5</neo4j.ogm.version> Today I upgraded our spring-boot and Spring Data Neo4j -based application, which starts and works well with spring-boot 1.3.2.RELEASE,

Deploy a Procedure to Neo4J when using the embedded driver

一曲冷凌霜 提交于 2019-12-21 20:08:59
问题 I have some logic which needs direct node access to neo4j but the rest of the app using Spring Data Neo4j (SDN) for simplicity. I thought to use a procedure with @Procedure, but I'm not sure how to use that procedure when using the neo4j embedded driver and SDN4. My configuration is very barebones as below: @Configuration @EnableNeo4jRepositories(basePackages = "recommender.repository") @ComponentScan(basePackages = "recommender") @EnableTransactionManagement public class MyNeo4jConfiguration

SDN4 - Neo4j OGM + Jackson 2.0

半腔热情 提交于 2019-12-20 01:13:14
问题 I am trying to use Jackson 2.x annotations on a Spring Data Neo4j 4.0.0RC1 entity but am seeing failures in my application context starting. I have two @NodeEntities that implement an interface and I've annotated the interface as such: @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonSubTypes({ @Type(value = SimpleNode.class, name="simple"), @Type(value = OtherNode.class, name="other") }) public interface Node { } I believe this is correct

Can't configure node_auto_index with InProcessServer() SDN 4

谁说我不能喝 提交于 2019-12-13 05:27:28
问题 I'm using the following java configuration for my Neo4j (using SDN 4.0.0.RELEASE) based application, with unit tests: ... @Bean public Neo4jServer neo4jServer() { return new InProcessServer(); } @Bean public SessionFactory getSessionFactory() { Neo4jRequest<String> neo4jRequest = new DefaultRequest(httpClient); String json = "{" + "\"name\" : \"node_auto_index\", " + "\"config\" : {" + "\"type\" : \"fulltext\", " + "\"provider\" : \"lucene\"" + "}" + "}"; neo4jRequest.execute(neo4jServer()

Spring Data Neo4j 4 and dynamic product properties

百般思念 提交于 2019-12-12 18:19:17
问题 In my Neo4j/SDN project I have to implement a following task - I have a parent Node(let's say ParentNode ) that must define a set of product characteristics, for example: weight: Double size: Integer license: String active: Boolean Also, new product characteristics( with any new name and type ) can be added during the application runtime. ParentNode can have a set of child nodes(let's say ProductNode ) and each of these nodes can provide an own value for a certain characteristic defined by a

SDN4 Config - java.lang.annotation.AnnotationFormatError: Invalid default: …EnableNeo4jRepositories.repositoryBaseClass()

痴心易碎 提交于 2019-12-12 17:15:11
问题 I'm getting the following error with Spring Data Neo4j 4. I think it could be a dependency conflict but I'm not sure what. java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) at org.springframework.test.context.web

Neo4j SDN4 OGM AmbiguousBaseClassException

人走茶凉 提交于 2019-12-12 05:38:22
问题 I am running into an issue wherein some of my Neo4J queries like the one below ends up in an OGM AmbiguousBaseClassException while others don't. For example findByTitle for the movie "The Score" throws an exception but "The Matrix" does not. My graph is populated by the Movie Database found at https://neo4j.com/developer/example-data/ I am unable to find an explanation to the above observation and I hope someone can help. curl http://localhost:8080/movies/search/findByTitle?title=The%20Score

How to configure spring-data-neo4j embedded server properties?

笑着哭i 提交于 2019-12-12 04:48:50
问题 I have setup using spring-data-neo4j v 4.2.1, neo4j-ogm v 2.1.2. I need embedded neo4j server with specific configuration for testing. cypher.forbid_shortestpath_common_nodes=false . I tried this without success in spring @Configuration bean: @Bean public org.neo4j.ogm.config.Configuration getConfiguration() { org.neo4j.ogm.config.Configuration config = new org.neo4j.ogm.config.Configuration(); config.driverConfiguration().setDriverClassName("org.neo4j.ogm.drivers.embedded.driver

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