Questions tagged [spring-data-neo4j]

Spring Data Neo4j enables POJO based development for the Graph Database Neo4j.

From http://www.spring.io/projects/spring-data-neo4j

Spring Data Neo4J offers advanced features to map annotated entity classes to the Neo4j Graph Database. The template programming model is equivalent to well known Spring templates and builds the basis for interaction with the graph and is also used for the advanced repository support. Spring Data Neo4j is part of the Spring Data project which aims to provide convenient support for NoSQL databases.

Here is the Spring Data Neo4j reference book.

1762 questions
15
votes
3 answers

Lazy/Eager loading/fetching in Neo4j/Spring-Data

I have a simple setup and encountered a puzzling (at least for me) problem: I have three pojos which are related to each other: @NodeEntity public class Unit { @GraphId Long nodeId; @Indexed int type; String…
Niko
  • 6,133
  • 2
  • 37
  • 49
13
votes
2 answers

Neo4j: Cypher query on property array

I have a domain class which has a property by name "alias" which is an arraylist of strings like below: private List alias; alias contains the following values: {"John Doe","Alex Smith","Greg Walsh"} I'd like to be able to make a query…
codebin
  • 285
  • 1
  • 4
  • 12
13
votes
2 answers

Can neo4j be run in memory only?

Is it possible to run Neo4j in memory only without any persistent database/file storage? The data coming from several xml/json files, and we have to load them into jvm heap memory by using ConcurrentHashmap. Since the data objects have dependencies…
user3246920
  • 131
  • 1
  • 4
13
votes
6 answers

org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'repository:auditing-attributes' to a(n) 'attribute group' component

Getting following error while running maven test on project. I am building a test application using Spring Data Neo4j. java.lang.IllegalStateException: Failed to load ApplicationContext at…
RickDavis
  • 2,276
  • 6
  • 25
  • 31
11
votes
6 answers

No bean named 'transactionManager' available

When I tried to create relationship using spring code, I am getting Transaction manager error. I am using Mysql and Neo4j database in my project. I tries different solution but not able to…
Galaxy
  • 743
  • 1
  • 8
  • 26
10
votes
2 answers

Architecting a Neo4j-Based Application - stick to vanilla API using plain nodes & relationships or use Spring/GORM?

I'm hoping to hear from any of you who have architected and implemented a decent sized Neo4j app (10's millions nodes/rels) - and what your recommendations are particularly w.r.t modelling and the various APIs (vanilla java/groovy Neo4j vs…
8
votes
2 answers

Neo4j Multi-tenancy

What is the best way to achieve multi-tenancy in neo4j? I have seen Tinkerpop and Spring Data. I'm have multiple clients and I would like to store client info in its own database to ensure security. I do not want to use labels or indexes to solve…
Kelly Watson
  • 569
  • 1
  • 4
  • 7
8
votes
2 answers

How to implement a read-only property with Spring Data?

This should be a simple thing to do! But I've been unable to find an answer so far. Either I'm missing something obvious, or else I'm missing something obvious... I have a class, say Person. With three fields - "id", "name" and "reputation". Let's…
8
votes
1 answer

Could not autowire. No beans of Neo4jTemplate type found

I use IDEA IntelliJ 12.0.2. My application-context.xml is:
Mik378
  • 21,881
  • 15
  • 82
  • 180
8
votes
2 answers

Finding leaf nodes in a Neo4J database

We have a project where we use Spring Data Neo4J. One of the important entities is shown below: @NodeEntity public class Category { @GraphId Long id; String name; @RelatedTo(direction = Direction.INCOMING, type = "CHILD") …
manish
  • 19,695
  • 5
  • 67
  • 91
7
votes
2 answers

How to delete all indexes in neo4j?

I want to delete all indexes that exist using cypher in a bulk can it be done? I am using neo4j 3.4.7. DROP INDEX ON :Label(attributename) Does it replace existing indexes if I create the same index in a later stage?
Abdullah Al Noman
  • 2,817
  • 4
  • 20
  • 35
7
votes
3 answers

SDN with Neo4j 2.2x

Many are claiming that the SDN version 3.3.1 or 4.0.0.RC1 should work with neo4j 2.2.x but I could not make it to work. I have this spring config configuration:
biliboc
  • 737
  • 1
  • 10
  • 25
7
votes
1 answer

How to integrate Spring Data Neo4j and Mongodb in Grails 2.4.2 Project

I am creating a Grails Project , I need to integrate Neo4j and Mongodb , For neo4j I use SDN(Spring Data Neo4j) and for MongoDb we use Grails Plugin This is our Dependencies and Plugins dependencies { // specify dependencies here…
user3884200
7
votes
2 answers

How to close and re-open Spring Data Neo4J contexts without killing the VM

I'm running a spring data neo-4j application (not web based) which works fine during normal operation. If I close the Spring Context 'ctx.close()' the lock on the neo 4J database goes away. Then, from the same instance of the application, if I grab…
Link19
  • 586
  • 1
  • 18
  • 47
6
votes
4 answers

save method of CRUDRepository is very slow?

i want to store some data in my neo4j database. i use spring-data-neo4j for that. my code is like the follow: for (int i = 0; i < newRisks.size(); i++) { myRepository.save(newRisks.get(i)); System.out.println("saved " +…
hilbert
  • 266
  • 4
  • 15
1
2 3
99 100