spring-data-neo4j

Spring Data Neo4j Create duplicate nodes with underscore

。_饼干妹妹 提交于 2019-12-11 22:32:53
问题 When i am persisting nodes in database using spring data neo4j. it persist duplicate nodes like "person" and "_person". it both contains same data. so i want to stop this behaviour of sdn. I am not using any inheritance and simply each class is having all properties. Also if i insert data from neo4j server directly ,sdn is not getting it. 回答1: The nodes are not being duplicated (you should see the same node ID on tour example person and _person). What you are seeing is the type representation

Grails Neo4j - why is POM included as dependency?

六眼飞鱼酱① 提交于 2019-12-11 20:46:32
问题 I'm using spring-data-neo4j and Grails. I get the following error when executing "grails test-app". I have the following BuildConfig.groovy dependency section: dependencies { // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g. // runtime 'mysql:mysql-connector-java:5.1.29' // runtime 'org.postgresql:postgresql:9.3-1101-jdbc41' test "org.grails:grails-datastore-test-support:jar:1.0-grails-2.4" compile "org.springframework:spring-context:jar

Neo4j Same Entity Relationship persistence issue

有些话、适合烂在心里 提交于 2019-12-11 19:24:42
问题 Is is possible to pls advice me how to go about.. doing a Same Entity Relationship.. For ex. Entity(class Person) relatesTo Entity(class Person). CODE: @NodeEntity public class Person { @GraphId @GeneratedValue private Long id; @Indexed(indexType = IndexType.FULLTEXT, indexName = "searchByPersonName") private String personName; @Fetch @RelatedTo(type = "CONNECTS_TO", direction = Direction.BOTH) private Set<ConnectedPersons> connectedPersons; public ConnectedPersons connectsTo(Person endPerson

Neo4J Rest Data Graph - using SpringData - connection refused exception

萝らか妹 提交于 2019-12-11 18:12:53
问题 I have a project that use successfully a Neo4J embedded data graph, using SpringData. I'm trying now to change it to REST database, with no success. I followed the (simple) instructions and it should have been really easy and straight forward, but I keep getting exceptions on server startup. I set the server, as in the examples, to http://localhost:7474/db/data/ and I get 'connection refused' when starting the Tomcat. I would like to mention that currently I'm running this code on my local PC

How do I load spring-data(-neo4j)-repositories lazily?

拟墨画扇 提交于 2019-12-11 16:26:20
问题 I am using spring-data-neo4j (standalone) in my JavaEE7-application as nice neo4j-OGM. For time being, I am trying to integrate spring-data-neo4j repositories via @Autowired into my project. public interface UserRepository extends GraphRepository<User> {} I have started writing some JUnit-tests, which are testing beans which themselves use this repositories. Everything works fine so far. @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "/spring/application-context

Unable to use two Neo4j Instances with Spring boot/Spring data neo4j

人盡茶涼 提交于 2019-12-11 16:05:41
问题 Expected Behavior Trying to use two Neo4j instances with Spring boot and Spring data Neo4j Current Behavior Able to use only one Neo4j instances. Unable to use two repositories. Steps to Reproduce (for bugs) 1. Run two Neo4j Instances 2. Create Data source configuration for both Neo4j Instances using spring boot. 3. Use Repository to access the Node entity 4. It will throw error Context Consider that I am running a library and renting books to other users. If the user is renting the book from

Spring Data Neo4j executes wrong query from repositories

空扰寡人 提交于 2019-12-11 13:59:27
问题 As the title, Spring Data Neo4j doesn't execute the right derived queries. Let me clarify the concept with an example. I have the following class @RelationshipEntity public class MashupToMashupSimilarity { private float score; //GETTER AND SETTER } and to access the objects of the class I use a simple repository class public interface MashupToMashupSimilarityRepository extends GraphRepository<MashupToMashupSimilarity> { public Set<MashupToMashupSimilarity> findByScoreGreaterThan(float score);

How to add resource and specify related element?

☆樱花仙子☆ 提交于 2019-12-11 13:57:57
问题 I have a simple API for a game tip website: /class is the endpoint for in game classes /tip is the endpoints for the tips /user is the endpoint for the users Each tip has 3 relations: (:User)-[:AUTHORED]-(:Tip) (:Class)<-[:FOR]-(:Tip) (:Class)<-[:AGAINST]-(:Tip) When I create a Tip using POST , I do'nt know how to add relations at the create time. I can do this way: Add relation to another node in SDN4 + REST after creating the resource, but I want to do it with only one query. EDIT: I tried

How to CRUD @RelationshipEntity in SDN 4.0

爷,独闯天下 提交于 2019-12-11 12:16:09
问题 If I have a rich relationship entity, for example @NodeEntity public class Actor { Long id; private Role playedIn; } @RelationshipEntity(type="PLAYED_IN") public class Role { @GraphId private Long relationshipId; @Property private String title; @StartNode private Actor actor; @EndNode private Movie movie; } @NodeEntity public class Movie { private Long id; private String title; } To CRUD both @NodeEntity , just simply create a @Repository each, for example @Repository public interface

use spring-data-neo4j in grails get UnsatisfiedDependencyException

拟墨画扇 提交于 2019-12-11 12:07:12
问题 i want to use spring-data-neo4j in my grails application. i've added the compile 'org.springframework.data:spring-data-neo4j:3.1.1.RELEASE' dependency in BuildConfig. After adding <neo4j:config storeDirectory="data/graph.db" /> to the applicationContext.xml i get following exception at application start: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.data.neo4j.config.Neo4jConfiguration#0': Unsatisfied dependency expressed