The transactions only work if they are in the classes the services call, which is how I've been working around this. So both the service injection & transaction injection work, just not in the same...
Type: Posts; User: treaves; Keyword(s):
The transactions only work if they are in the classes the services call, which is how I've been working around this. So both the service injection & transaction injection work, just not in the same...
Yes, they are.
Unfortunatly, I'm having this issue. I have these seperations made (of the MVC controllers), I have the correct entry for <tx:annotation-driven mode="proxy" />, and have tried the others in this...
To your first point, about saveing item1, it is saved by the time it is added to the layers. So that's not relevent.
As to your second point, about adding the relations, the Neo4j documentation...
I have two classes in an m:n relationship, defined as:
public class Item {
@RelatedTo(type="MEMBERS", direction = Direction.INCOMING)
Set<Layer> layers;
}
public class Layer {...
As best I can tell, Maps are not supproted with neo4j; is that correct? I find Lists & Set only.
start layer=node:Layer(name={0}), asset=node:Asset(hash={1})
match asset<-[:MEMBERS]-()-[:PARENT_OF*0..]->layer
return asset
Seems to owrk. When I studied the code a little more, it looked...
Unfortunatly, this does ntowork. The first query works as expected, but the secodn one does not (it return nothing).
I'll look over the documentation more.
Yes, I had used that index do to a defect in Neo4j (that was reciently fixed). I hadn't relized that was what GLOBAL meant. Changing in to INSTANCE, the query now works.
I should clarify that the autogenerated query makes no sense as it looks like it would find any node of any type with an attribte named hash whos value matched that provided.
I have a repository interface defined as:
package com.eml.repository;
public interface AssetRepository extends GraphRepository<Asset>
It has a method defined:
com.eml.domain.Asset...
Please forgive me if I've over-looked this, but when upgrading from something like
<spring-data-neo4j.version>2.1.0.RC3</spring-data-neo4j.version>
<neo4j.version>1.8.M07</neo4j.version>
to
...
I have two class: A & B. A has a collection of B's.
@NodeEntity
public class A implements Comparable<A>{
@GraphId Long nodeId;
@Indexed String name;
@RelatedTo(type="MEMBERS") Set<B>...
I have a repository interface extending GraphRepository. I use this for almost all of my graph access, and that works well. Now I'd like to do something, and I'm not sure the best way to accomplish...
Yes, it does, thanks. In my case, parent is singular, but, yes.
Thanks for the response.
That doesn't do it though. If I have a class thus:
public class Element {
Set<Element> children;
Element parent;
Set<Foo> foos;
}
I am trying to model a bi-direction one-to-many relationship (a tree). A node can have a parent, and has a children collection. This is straigh-forward in most persistance framewroks. But I can not...
I have a working sample project. This uses neo4j 1.7 with spring-data-neo4j.version 2.1.0.RC1. As I was looking at how to install Neoclipse, I saw that the current version of neo4j is 1.7.1. So I...