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
0
votes
2 answers

Different types for different RelationshipEntities

I want to represent this type of modeling with Spring Data Neo4j: Object ------Value------> Property ...where Object and Property are NodeEntity, and where Value is a RelationshipEntity. For instance: Car1 ------String value="Ford"------>…
0
votes
1 answer

can't build spring-data-graph hello-worlds example

I'm new on maven and new on spring-data-neo4j too. I've downloaded this hello-worlds-example I tried to execute the example like described via maven using the command: mvn clean package exec:java I became a lot of errors. I don't find a way to…
hilbert
  • 266
  • 4
  • 15
0
votes
1 answer

How could I retrieve all the relationships from a (spring-data-)neo4j database?

Is there a way to simply retrieve all relationships of a certain type - where type is a @RelationshipEntity annotated class - from a spring-data-neo4j [SDN] database? (working with 2.0.0.RC1 & embedded DB) When I try the method provided by SDN…
Matyas
  • 13,473
  • 3
  • 60
  • 73
0
votes
1 answer

use WrappingNeoServerBootstrapper with spring-data-neo4j

Is it possible to use the WrappingNeoServerBootstrapper with spring-data-neo4j? When using an embedded database without spring-data-neo4j, one can use a WrappingNeoServerBootstrapper to enable the REST-interface and the Webadmin. I use…
Tobias
  • 60
  • 1
  • 6
0
votes
1 answer

SpringDataGraph findByProperty not working with Neo4J

When I run the code below, a new User with the expected properties is created. (I confirm with Neoclipse after running the test). However, findByPropertyValue fails to retrieve the user. It just returns null. When I debug I find that usrFromDb1 only…
Soroush Hakami
  • 5,226
  • 15
  • 66
  • 99
0
votes
1 answer

Spring data Neo4j @NodeEntiry and Roo @RooEntity conflict

When i try to annotate a POJO with both @NodeEntity and @RooEntity i got following error on the *_Roo_Entity IDT: can't override T org.springframework.data.neo4j.core.NodeBacked.persist() with void com m.foo.lib.model.MyPOJOClass.persist()…
Random
  • 4,519
  • 2
  • 38
  • 46
0
votes
2 answers

@RelatedTo(elementClass = Concept.class) RelatedTo.elementClass must be a class liter

Reading this documentation, I tryed to apply to my code in this way: Triple @Entity @Table(name = "triple") @NodeEntity public class TripleDBMoldelNeoImpl implements TripleDBModel{ protected List annotations; @RelatedTo(type =…
Blanca Hdez
  • 3,513
  • 19
  • 71
  • 93
0
votes
1 answer

Spring Data Neo4j - How to register a node entity and a repository at runtime

I create a node entity and a repository with using javassist at runtime. And, I want to register them to spring data context. How can I do that?
nsylmz
  • 277
  • 2
  • 10
0
votes
1 answer

Neo4j with Spring Data Query

I'm not being able to catch what I'm doing wrong. I'm able to run the query on neo4j console with hardcoded values. I'm trying to do the following query on my repository class: @Query("START user=node({0}) \n" + "MATCH (anotherUser) \n" + …
0
votes
1 answer

Create Node and Relationship in one query : Spring Data Neo4j

I am trying to create new nodes and relationships using Neo4j using Spring Data Neo4j. My use case is to add a friend relationship between 2 user nodes. So this boils down to : User user1 = userRepo.findByPropertyValue("userId1", userId1); User…
sharath
  • 3,501
  • 9
  • 47
  • 72
0
votes
3 answers

Neo4j with SpringRestGraphDatabase - getting class not found exception

I've built a new project using Spring data graph for Neo4J. I'm using Maven. Everything works fine with embedded database, but when I'm trying to set a database on remote server using REST I'm getting: java.lang.ClassNotFoundException:…
0
votes
2 answers

Returing the most current league in cypher

I've the League node entity as below @NodeEntity class League { private Date startDate; } I want to return the most recent league for which the below cypher is working fine when executed from the shell START n=node(*) WHERE has(n.__type__) and…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
1 answer

Neo4j graphDatabaseService blows up on context initialization if remote DB is down

When the Neo4j config is initialzed, and the remote DB is not running, the server will not start ...
Black Dog
  • 31
  • 2
  • 9
1 2
3