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

Spring Data Neo4j 4 - Create field Long with Auto Increment

I want to make 2 identity of Node. One for graphId (internal id of neo4j graph id) with annotation @GraphId and second for tableId for easily declaration Id per Node (start from 1 to *) SDN 4 is not supported @Index anymore from open question SDN 4…
David Vincent
  • 634
  • 1
  • 8
  • 33
0
votes
1 answer

Spring Data Neo4j 4 - findById(Long id) return null

I am using SDN 4 and neo4j-ogm 1.1.4 I am trying to fetch my data using findById(Long id) GraphRepository, but always return null. After that I am trying to use findByName(String name) and its worked. I know there is alternative using findOne(Long…
David Vincent
  • 634
  • 1
  • 8
  • 33
0
votes
1 answer

DynamicProperties in Spring Data Neo4j 4 does not support any workaround

Spring neo4j-4 does not support DynamicProperties. Is there any workaround for this in SDN4?
0
votes
2 answers

why NoHttpResponseException occues while using sdn4

we use sdn4 to access neo4j,but sometimes this exception occurs. what's the reason? neo4j's version 2.2.5。what config we can config to avoid this exception? at org.neo4j.ogm.session.request.DefaultRequest.execute(DefaultRequest.java:105)…
Beni
  • 51
  • 3
0
votes
1 answer

Keep getting error after upgrade Spring Data Neo4j 3 to Spring Data Neo4j 4

I am trying to upgrade my previous source code from SDN 3.4.2.RELEASE to SDN 4.0.0.RELEASE but keep getting error. org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is…
David Vincent
  • 634
  • 1
  • 8
  • 33
0
votes
1 answer

Can't configure node_auto_index with InProcessServer() SDN 4

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()…
karnaugh
  • 27
  • 3
0
votes
2 answers

Spring Data Neo4j 4 is not storing any data

I use neo4j-2.3.1 and spring-data-neo4j 4 in my new project. I set up everything as this post (Spring Data Neo4j 4). However, I can not have any data store into database. Here is my neo4j…
Junbang Huang
  • 1,927
  • 19
  • 26
0
votes
1 answer

Spring Data Neo4j 4 : findByPropertyIsNull is not working

Using SDN 4.0 and having this entity, offering a tree of Interests (Parent and Children) @NodeEntity public class Interest { @GraphId private Long id; private Interest parent; private List children = new…
Nassim MOUALEK
  • 4,702
  • 4
  • 25
  • 44
0
votes
2 answers

Spring Data Neo4j 4: Bug when updating property to null?

I use Spring Data Neo4j 4 GraphRepository to save and retrieve data. Using GraphRepository save() and findAll() methods. When I update an existing entity property to null, it seems that changes are not reflected in the returned data. If I update…
Martin L.
  • 135
  • 1
  • 7
0
votes
1 answer

SpringDataNeo4j-4: BeforeSaveEvent doesn't invoked on nested entities

Have a trouble with nested entities while calling Neo4jTemplate.save(...). Actually yes, nested entities being persisted as well, but BeforeSaveEvent only invoked on parent entity. In BeforeSaveEvent, I populate uuid and timeCreated fields for all…
maret
  • 1,826
  • 1
  • 13
  • 18
0
votes
1 answer

SpringDataNeo4j-4: storing entities(owned items) in collection inside "owner" class representation strategy

Unfortunately, but there is not enough information, as well as examples which demonstrates the best way to represent in Java related entities like "OWNER - OWNED ITEMS". I'm not talking about neo4j relationship direction, but only about java data…
maret
  • 1,826
  • 1
  • 13
  • 18
0
votes
1 answer

Populating child objects in SDN4 in a convenient way

In SDN3.4.0 when an entity is loaded from database, empty child objects (no @Fetch annotation) are populated with only ids present. In SDN4 this doesn't happen and child objects are not populated with ids (for depth 0). Wanted to understand the…
0
votes
1 answer

How to define named query in Spring data Neo4j 4

How can I define a named query in Spring data Neo4J 4.0.0? In earlier release 3.4.1 @Query annotation had queryName attribute. Now it is not available Edit: As mentioned in the answer, named-queries are currently not supported. Created a new ticket…
sidgate
  • 14,650
  • 11
  • 68
  • 119
0
votes
0 answers

Spring Data Neo4j 4 SerializationException

i configured Neo4j Connection as stated in neo4j documentation for spring neo4j 4. Whenever i call save() for a Node or try to get one with a GraphRepository interface i get the following…
Ceryni
  • 371
  • 1
  • 5
  • 18
0
votes
0 answers

sdn 4.0 wired behaviour in unit test

This is bit strange for me. I have a company repository @Repository public interface CompanyRepository extends GraphRepository { Company findByName(String name); @Query("MATCH (n:Company) WHERE lower(n.name) CONTAINS lower({0})…
jasonfungsing
  • 1,625
  • 8
  • 22
  • 34