Re: [Neo4j] [Spring Data Graph] Precisions about Detached Entities and SDG under the hood

2011-08-23 Thread Michel Domenjoud
or some reason, a second output > is > > needed > > > > In the same time, a client Y executes the following code: > > 1. Movie retrievedMovie = movieRepository.findByPropertyValue("Babel"); > > 2.retrievedMovie.setTitle("New title")); > > 3.

Re: [Neo4j] [Spring Data Graph] Precisions about Detached Entities and SDG under the hood

2011-08-23 Thread Michael Hunger
there are two states attached and detached: an entity is detached when it is created or when it is changed outside of a transaction. Otherwise (when it is freshly loaded, or after persist it is attached). For detached entities: persist() writes the changed properties and relationships to the g

[Neo4j] [Spring Data Graph] Precisions about Detached Entities and SDG under the hood

2011-08-23 Thread Michel Domenjoud
Hello, I'm currently testing some of Spring Data Graph features, and I have a few questions about some usages. Could someone explain to me how the following example works? I run the following unit test: @Test public void testUpdatingEntitiesNotInTransaction(){ Movie m = new Movie();