Questions tagged [neo4j-ogm]

Neo4j OGM is a fast object-graph mapping library for Neo4j, optimised for server-based installations and utilising Cypher via the transactional HTTP endpoint. Neo4j-OGM aims to simplify development with the Neo4j graph database and 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.

Docs: https://neo4j.com/docs/ogm-manual/current/

Source: https://github.com/neo4j/neo4j-ogm

516 questions
0
votes
1 answer

Spring Data Neo4j: Application exception overridden by rollback exception

I have a long transaction and when an exception occurs the web application is still working but if I call some actions that involve the db (remote by REST) the action take long time to fail. INFO …
aGO
  • 1,263
  • 14
  • 30
0
votes
2 answers

Neo4j OGM fields not inherited

I'm running into a problem with neo4j OGM library, I've followed the instruction on the library docs page to implement an abstract parent entity to contain all the shared fields and functionality of my entities. When I then inherit this class with a…
Aviv Carmi
  • 907
  • 8
  • 21
0
votes
1 answer

Spring-data-neo4j 4.0.0 repository makes multiple REST calls instead of grouping them

I'm using Spring-data-neo4j 4.0.0 with Neo4j 2.3.1 and I'm wondering why when I do something like: entityRepository.save(Iterable multipleObjects); it actually does multiple REST calls on Neo4j server: - POST to create the transaction (done once,…
tigrou83
  • 157
  • 10
0
votes
1 answer

Neo4j OGM library with embedded server

Is it possible to use the OGM library with one embedded server ? The examples I have seen so for the session is always obtain via remote http connection to the neo4j server. I would like to have the elegant programming model of the OGM library…
Luis Trigueiros
  • 636
  • 7
  • 21
0
votes
2 answers

Neo4j Java OGM select with lock

I am trying to select a path with locking the last node in that path using Java OGM for Neo4j. To do that in cypher I have written the following query: String q = "Match path = (p:Root) - [*1..100]-(m:Leaf) WHERE m.State = 'Non-Processed' WITH…
Vahagn
  • 386
  • 2
  • 21
0
votes
1 answer

Neo4j-OGM relations not being loaded

In my project I have MapNodes, which are connected by a relation ConnectRelation. ConenctRelation has a property length. Nodes and their relations are saved to the Neo4J database without problems. But when loading the Nodes, the relationsList is…
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

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

Why does this SDN4 query throw "The transaction has been terminated"?

We use Spring Data Neo4j 4, and a very simple cypher @Query("start a= node( {0} ) match a return id(a) as graphId,a.name as name,a.base as base") List findNameByIds(@Param("0") List ids); this exception often occurs , sometimes it's…
Beni
  • 51
  • 3
0
votes
1 answer

Neo4j-Ogm for dynamic domain object model

I've started to use Neo4j-ogm inside my application and it works like charm for fixed object domain model. When I know which node type connected to another node with known type - it can be easily mapped. However, in my opinion versitality of Neo4j…
Vladimir
  • 31
  • 3
0
votes
1 answer

Saving RelationshipEntity not working

I am new to Neo4J and working with Spring data repository. Following is the domain definition @NodeEntity public class Actor { Long id; private Set roles; } @RelationshipEntity(type="PLAYED_IN") public class Role { @GraphId …
sidgate
  • 14,650
  • 11
  • 68
  • 119
0
votes
2 answers

How to add labels dynamically to nodes in Neo4j from neo4j-ogm or spring-data-neo4j?

When I create a node, I want to add multiple labels, known at run-time, to the node. Is it possible to this in neo4j-ogm or spring-data-neo4j?
Claude
  • 489
  • 4
  • 15
0
votes
1 answer

Return self referencing nodes as a parent-child using neo4J OGM and cypher

In the Neo4J database, I have an entity 'Person' which can be related to other Persons as a PARENT_OF or a CHILD_OF relationship For instance, the cypher query Match (p:Person) - [:PARENT_OF] -> (c:Person) where id(p) = {p_id} return p, c will…
Dhan
  • 91
  • 1
  • 9
0
votes
1 answer

@Index annotation in SDN4

Why there is an @Index annotation in SDN4 if it does not manage Neo4j indexes anymore? In SDN3 it was used to populate indexes in the database, but now, taking into account the documentation, it is not.
Cob
  • 171
  • 10