Questions tagged [spring-data-neo4j-4]

The Spring Data Neo4j project, as part of the Spring Data initiative, aims to simplify development with the Neo4j graph database. Like JPA, it uses annotations on simple POJO domain objects. Together with metadata, the annotations drive mapping the POJO entities and their fields to nodes, relationships, and properties in the graph database.

For version 4, Spring Data Neo4j has been rewritten from scratch to natively support Neo4j deployments in standalone server mode. It uses Cypher, the Neo4j query language, and the HTTP protocol to communicate with the database.

The guide for Spring Data Neo4j 4 is available at http://docs.spring.io/spring-data/neo4j/docs/4.0.0.M1/reference/html/

517 questions
0
votes
1 answer

Neo4j Non-Rest Environment

I have tried running SDN 4, but still can't seem to make it run without its REST service (web service). I wonder if it is possible to make Neo4j run without REST(Web) service? Currently trying to make an app to do simple CRUD to the database like…
kenlz
  • 461
  • 7
  • 22
0
votes
1 answer

Neo4J SDN 4 Unable to save

this is my configuration @EnableTransactionManagement @EnableScheduling @EnableAutoConfiguration @ComponentScan(basePackages = {"id.co.babe.neo4j.service"}) @Configuration public class MyNeo4jConfiguration extends Neo4jConfiguration { private…
kenlz
  • 461
  • 7
  • 22
0
votes
1 answer

Spring REST always return 404

I use spring mvc to create a rest web service. However, I always get 404. I don't have any idea where I go wrong. Here is my Initializer: public class Initializer extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected…
Junbang Huang
  • 1,927
  • 19
  • 26
0
votes
1 answer

Neo4j ignores Enums

Working with Neo4j I created a TSUser object that has a state showing if the user is active or not. When i create the user in the Neo4j DB, the state is not shown, as if it was transient. However, when i load the user in the code (while debugging),…
Urr4
  • 611
  • 9
  • 26
0
votes
1 answer

Why is findOne(, ) getting unacceptably slow performance when adding more nodes of the same label?

CONTEXT I've been developing a spring boot website backed by a Neo4j database. It is designed to work as a university course search system. (the relevant structure is that courses have modulesets, that have modules, that are related to subjects,…
Jack Dalton
  • 3,536
  • 5
  • 23
  • 40
0
votes
1 answer

upgrading spring-data-neo4j from 3.3.0.RELEASE to 4.0.0.RELEASE

Not able to import org.springframework.data.neo4j.conversion.Result. I have code like - Result> result = template.query(matchQuery, null); Please let me know if api is deprecated/it name got changed in 4.0.0.RELEASE version. If i…
RCS
  • 1,370
  • 11
  • 27
0
votes
0 answers

Spring-data-neo4j get multiple paths

I am currently using spring-data-neo4j to get paths between two nodes. Here's the repository: @Query("MATCH p=((n:GLNode)-[:GLRelationship*0..]->(m:GLNode)) WHERE id(n)={0} and id(m)={1} RETURN nodes(p)") Collection getAllPathes(Long sid,…
Steven Luo
  • 2,350
  • 3
  • 18
  • 35
0
votes
1 answer

Configure embedded Neo4j cluster with neo4j-ogm 2.x (EmbeddedDriver)

I'm using Spring-data-neo4j 4.1.0.RC1 and neo4j-ogm-embedded-driver 2.0.1 and I'm trying to configure my embedded database in HA cluster mode (server id, initial hosts, push factor, ...). Is there a way to do it ? I'm not able to do it via the…
0
votes
0 answers

Spring Data Neo4j-4 performance very slow when retrieving relationship rich entries

I am currently using SpringDataNeo4j–4.1.0.M1 for a data set containing about 1.2 million nodes and 12 million relationships. The data structure behind the graph is very complex and hierarchical. In total there are 79 NodeEntities and some of them…
fkorn
  • 50
  • 6
0
votes
1 answer

Spring Data Neo4j overwrites attributes

I tried writing a service, having an update(User) function using SDN 4.0.0. The function should look, it there is a User in the database with the same id, and if so, overwrite this user with the new one. Having a UserRepository which extends the…
Urr4
  • 611
  • 9
  • 26
0
votes
1 answer

Planning to use sdn4 , i dont see travesal api support in sdn4 ..so what are my options

Planning to use sdn4 , i dont see travesal api support in sdn4 ..so what are my options. Shall I develop unmanaged extension with sdn3 perhaps..?
0
votes
1 answer

In SDN4 neo4jOperations.queryForObjects returns entities with empty collections. How to solve?

I have entity, which looks like this: @NodeEntity class User { String name; boolean male; <...> @Relationship(type = "friend") Set friends; @Relationship(type = "participation") Set events; <...> } In…
Victor Dombrovsky
  • 2,955
  • 3
  • 21
  • 33
0
votes
3 answers

How can I fetch entity with specific related objects via Spring Data Neo4j 4

I have the following (Project, User, Task) domain objects. How can I fetch entity with specific related objects via Spring Data Neo4j 4 (SDN4)? For example I want to fetch a project with related tasks, but without users. This sample doesn't work.…
Ibraim
  • 1
  • 1
  • 1
0
votes
0 answers

SDN4 doesn't allow multiple one-to-one relationship on the same class

I'm using Spring Data Neo4j 4 (SDN4), it seem that when I try to "modify" the one-to-one relationship attribute, the SDN will "add" it in the database in a particular operation way Codes (skip encapsulation) @NoteEntity public class Bar{ String…
minglight
  • 87
  • 6
0
votes
0 answers

relationships are not fetched properly on spring-data-neo4j version 4.1.0

I've been trying to represent a directed graph using neo4j entities. Working on spring-data-neo4j 4.1.0.BUILD-SNAPSHOT In my scenario there is a Node which represents a generic graph node, and NodeWithScore which inherits from Node and contains some…
geronimo
  • 57
  • 4