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

Does SDN4 allow multiple relationship of collection type to the same Entity?

When I try to get different relationship type of collection object, the collection property will retrieve all the same entity type even if the relationship type if not the collection relationship type. Is it a bug ? The entity Demo contains two…
minglight
  • 87
  • 6
0
votes
1 answer

Neo4j OGM returning No Host exception

I am running neo4j-community-2.2.5 locally on my macbook. I am trying to connect to the code using the neo4j-ogm version : 1.1.2 Here is the session factory: public class Neo4jSessionFactory { private final static SessionFactory sessionFactory…
lazywiz
  • 1,091
  • 2
  • 13
  • 26
0
votes
1 answer

Does Neo4j OGM work well with interfaces?

I've developed two sets of classes - the first one are just classes, whereas in the second set, the classes derive from interfaces. Both the sets of classes mimic each other. The repositories for them are also similar. However, the repository works…
mmwaikar
  • 655
  • 4
  • 14
0
votes
1 answer

SDN4 or neo4j-ogm performances issue

I wrote some simple java code and I encountered some bad performances with SDN4 that I didn't have with SDN3. I suspect the find repositories methods depth parameter to not work exactly in the way it should be. Let me explain the problem: Here are…
clement
  • 489
  • 1
  • 5
  • 18
0
votes
1 answer

SDN4 - Neo4j OGM and JsonSubType Annotation

I have followed the SDN4 migration path from SDN3 and have encountered the same issue documented here: SDN4 - Neo4j OGM - Jackson 2 A patch is referenced in the answer and mentions that it will applied to neo4j-ogm 1.1.1. I have since tried…
Matthew Shaw
  • 108
  • 1
  • 7
0
votes
1 answer

Spring OGM- modelling Entities

I have this scenario where one visitor creates a Pending-Visit-Request to a Resident. Then based upon the reply provided by the Resident, the visit is either approved or rejected. But before creating a new request, there's also a possibility that…
Sagar
  • 229
  • 4
  • 14
0
votes
1 answer

change temp dir for Neo4j-OGM unit tests?

Out of the box, the junit tests of the Neo4j-OGM library create the temporary database files under /tmp. How can I change this? Setting java.io.tmpdir in the maven-surefire-plugin config does not seem to do the trick.
Max Spring
  • 1,111
  • 2
  • 11
  • 18
0
votes
1 answer

[RuntimeException: java.lang.ClassNotFoundException:]: with Neo4J OGM using with Play framework Java 2.4.2

I am trying to use Neo4J OGM 1.1.1 with Play 2 Java framework 2.4.2. but, I am see ClassNotFoundException when I run the application. Below is my session factory class: package org.neo; import org.neo4j.ogm.session.Session; import…
brnag
  • 13
  • 6
0
votes
1 answer

Relationship issue on neo4j.ogm using spring boot application

In my project i am using org.neo4j.ogm with spring boot. While i am trying to create a relationship using @RelationshipEntity means it will created successfully. But it does not support multiple to one relation. Here i am creating relationship for…
0
votes
2 answers

Neo4j OGM RelationshipEntity when StartNode and EndNode are objects of same type

I am following the Neo4j OGM guide at - http://neo4j.com/docs/ogm/java/stable/ For Relationship entities, we need to have a start node and an end node. I've modified the example a little bit (to make it simpler like this) - @NodeEntity public class…
mmwaikar
  • 655
  • 4
  • 14
-1
votes
2 answers

How create new node and create mappings to existing node in NEO4J

I try to add a new node to an existing graph in neo4j, and try to create a mapping between the new node(BAI09.03) and an existing node(PR.IP-6) but am getting it like this but my output should be like this
-1
votes
1 answer

How can I query NEO4J for duplicate numbers? If the number 919360123 is in the first column and is repeated in the second column in a different row

How do I extract duplicate numbers in columns by querying in NEO4J. For example, if the number 919360123 is in the first column and is repeated in the second column in a different row, what is the appropriate receipt to extract the numbers shared…
-1
votes
1 answer

How to remove the properties of map in neo4j?

I'm looking for a way to delete the properties of map from a node in neo4j. I have Stored the properties of a map in node using @Properties in my class. which stored the values in the node. my node looks like this. But when i am going to remove the…
Pavan Kumar
  • 412
  • 1
  • 6
  • 15
-1
votes
1 answer

Data is loss when I use the UNWIND

MATCH (ORG:ORG)-[ORGHASPROBLEM:HAS]->(PROBLEM:PROBLEM) WITH PROBLEM, extract(NUM IN filter( V IN collect({ PROB1:PROBLEM.PROB_ID, PROB2:PROBLEM.REGION}) where V.PROB2= 'LONDON') | NUM.PROB1) AS MEASURES1, extract(NUM IN filter( V IN collect({…
Akshay Vakharia
  • 79
  • 1
  • 12
-1
votes
1 answer

cannot hydrate "owns" collection property in POJO using neo4j ogm 2.0.6, spring boot, and remote NEO4J Community server 3.1.1

Can not hydrate "owns" collection property (annotation property) in a simple POJO. the owns property comes back empty. I'm using neo4j ogm 2.0.6, spring boot, and remote NEO4J Community server 3.1.1. NEO4J cypher query to populate db : CREATE…
1 2 3
34
35