jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: Isolation level inconsistency.
Date Fri, 20 Jul 2007 08:35:51 GMT

> the scenario posted here: searching for a John and getting a
> Joe instead

Ok, so the use case is:

1) Get session and load a contact with name 'Joe'
2) Update the name property from 'Joe' to 'John'
3) Now, query the repo for the contact using the name 'Joe'

I would do this:

1) Node contact = ...getNode(...) // we have the node
2) contact.setProperty("name", "John")
3) ... query ...

Then everything works fine. No problem.
You _only_ have a problem if if you don't call 'save()'.
So why exactly don't you want to call 'save' first?


View raw message