[Neo4j] Lifecycle of a Graph ?

2011-07-06 Thread V
Can anyone explains me the life cycle of a graph with Neo4j spring data graph. I want to load multiple copies of a persisted graph in memory, but some how the second instance returns null. Not sure if I am doing something wrong or if this is something related to the graph lifecycle? Any comments/

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-30 Thread V
o do that in your domain layer only. > > I'll look into the elements returning null. I thought I already solved that > some time ago. Which version of SDG are you using? > > Cheers > > Michael > > Am 30.06.2011 um 15:00 schrieb V: > > Any suggestions on this ple

[Neo4j] Unique index nodes

2011-06-30 Thread V
I have an element of my node marked with @Indexed String name I want to ensure that when I persist nodes, only one node with that name gets persisted. (I want to throw an error here and ask the user to give a different name) What is the best way to ensure this. Any suggestions ? - Karan ___

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-30 Thread V
Any suggestions on this please ? It is really acting as a blocker for me. I have tried multiple alternatives, but I come up with one issue or the other. On Wed, Jun 22, 2011 at 8:51 PM, V wrote: > I am confused, elements is defined as > > @RelatedTo(type = "ELEMENT&

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-22 Thread V
just in memory) > > Cheers > > Michael > > Am 22.06.2011 um 17:06 schrieb V: > > Michael - > > In my quest for a cleaner solution , I am coming back to your original > reply > > What do you mean by *"Right now this works only with the getElements().a

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-22 Thread V
el > > P.S. You can still persist your graph and remove the nodes later (either > index them on a "transient" index or keep their node-id's somewhere). > > > Am 18.06.2011 um 03:40 schrieb V: > > Any suggestions on this please ? > > > On Fri, Jun 1

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-20 Thread V
timeframe. > > Cheers > > Michael > > P.S. You can still persist your graph and remove the nodes later (either > index them on a "transient" index or keep their node-id's somewhere). > > > Am 18.06.2011 um 03:40 schrieb V: > > Any suggestions on this

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-17 Thread V
Any suggestions on this please ? On Fri, Jun 17, 2011 at 11:03 PM, V wrote: > I created a graph model with 2 classes Node and Element as follows: > > public class Node { > > @RelatedTo(type = "ELEMENT", elementClass = Element.class, direction = > OUTGOIN

[Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-17 Thread V
I created a graph model with 2 classes Node and Element as follows: public class Node { @RelatedTo(type = "ELEMENT", elementClass = Element.class, direction = OUTGOING) private Set Element; public void addElement(Element e) { relateTo(e, Relationships.ELEMENT.toString()); }