Questions tagged [spring-data-graph]

Spring Data Graph enables POJO based development for Graph Databases like Neo4j

Spring Data Graph enables POJO based development for Graph Databases like Neo4j. It extends annotated entity classes with transparent mapping functionality. A template programming model equivalent to well known Spring templates is also supported. Spring Data Graph is part of the bigger Spring Data project which aims to provide convenient support for NoSQL databases.

43 questions
1
vote
1 answer

How to persist relationships between Neo4J NodeEntitys in Spring Data Graph without calling persist twice

The test below fails if I remove the first persist(). Why do I need to persist the NodeEntity in order for the Set to be instantiated? Is there some better way to do this? I don't want to have to write to the database more often than nessesary. …
Soroush Hakami
  • 5,226
  • 15
  • 66
  • 99
1
vote
1 answer

Cypher query to get nodes with given property values

Being new to Cypher Queries on Spring Data Graph, this may be quite trivial... I am looking for what would be the Cypher query to fetch all nodes that have a given value for a couple of properties. So, what would be ??? in the @Query annotation for…
Saket
  • 45,521
  • 12
  • 59
  • 79
1
vote
1 answer

Spring framework version with Spring Data Neo4j

Is there a version matrix for Spring framework core with Spring Data Neo4j? I am looking for the (least) version of Spring framework core that is compatible (should be used) with Spring Data Neo4j 2.0.0.
Saket
  • 45,521
  • 12
  • 59
  • 79
1
vote
2 answers

Cypher quering using a node Id

Lets assume the following entities: A 'user' has a 'blog' and the blog has 'entries'. A blog can have multiple users and an entry has three properties, user, blog and a string entry. I want to write a cypher query that returns all the entries for a…
imamc
  • 175
  • 2
  • 15
1
vote
3 answers

Any alternatives to Spring Data Graph, jo4neo, ogrm?

I'm looking for easy-to-use graph DB + ORM solution. The requirements are: Fluent Java interfaces, no need to use any XMLs. Ease of graph traversal: "give me all entities of these types, starting from this one, traverse only using this set of…
Andrey Agibalov
  • 7,624
  • 8
  • 66
  • 111
1
vote
3 answers

Spring Data Graph and Eclipse

Spent 2 days trying to understand how to enable Eclipse work with Spring Data Graph, have no idea yet. The code is like this: @NodeEntity public class Person { public Person() { } } ... public class App { public static void…
Andrey Agibalov
  • 7,624
  • 8
  • 66
  • 111
1
vote
1 answer

How to creat an Server-Client Application using the DatagramPacket and DatagramSocket classes?

As the question say, how may I create a server- client application using DatagramPacket and DatagramSocket ?
user11164284
1
vote
0 answers

I am getting 'org/neo4j/kernel/impl/core/RelationshipTypeHolder ' error while Running spring data neo4j configuration

I have changed dependency of neo4j-kernel version but still getting this issue. Please suggest to me how to get rid out of this issue. Below are my pom, spring configuration and error console. Dependency in pom :
1
vote
1 answer

Property graph (Neo4j) design: Single node with multiple relations or new nodes for each event occurence?

Let us say I've two Leagues L1 and L2. Each league can have multiple rounds like Playoffs, Quarterfinals, Semifinals and Finals. Moreover, I also need to represent the happens_after fact like Quarterfinals happens after Playoffs, Semifinals happens…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
vote
0 answers

Map different relationship types to one collection

I am trying to map ontology terms to a Neo4j data-structure. To be precise I have a Term class and 2 types of relationships (is_a and part_of). I have following classes: Term class: @NodeEntity public class Term { @GraphId private Long…
Ümit
  • 17,379
  • 7
  • 55
  • 74
1
vote
1 answer

Spring Data Neo4j - How to connect a NodeEntity to the reference node 0?

I'd like to have a Neo4j graph where everything is connected to the reference node (node0). My idea was to connect node0 to a 'class type' node (rootNode) and then have all the nodes of a certain class connected to it. EG: node0 --> unique RootUser…
Marsellus Wallace
  • 17,991
  • 25
  • 90
  • 154
1
vote
1 answer

Spring Data Neo4j - Cross store persistence

I am new to SDN, I am trying to do a cross store persistence with hibernate. The tutorial given in website has examples for the same, I have checked the github ones too. I have two questions I am unable to do xml configuration as mentioned in the…
shazinltc
  • 3,616
  • 7
  • 34
  • 49
1
vote
1 answer

Registering Transaction Event Handlers in neo4j

I'm currently using Spring Data with Neo4j and have subclassed the SpringRestGraphDatabase to allow the registration of specific transaction event handlers. I call the registerTransactionEventHandler method to do so. Unfortunately I always get the…
imamc
  • 175
  • 2
  • 15
1
vote
1 answer

can I manually set nodeId in neo4j graph on creation of a node?

I am developing a Facebook app in which I login with my Facebook account and Facebook returns me a JSON with my Facebook data as a JSON which I project into a User.class (me) like so: @NodeEntity public class User{ @GraphId Long NodeId; String…
0
votes
1 answer

spring-data-neo4j not using workspace directory for storeDirectory

My different example projects are working well, but the database is stored in my Eclipse application itself. I am using Eclipse on OSX, so are there any known problems? Did anyone have the same problem so far? I did specify the path with:…