christian wrote:
This is reasonable and expected, check for the accuracy of timestamps in your VM. Hibernate plays safe and your test does not respect real world concurrency.
accuracy of timestamps in my VM?
I do not really get the point.
My problem is that this is the first time I've seen in OR mapping that adding unnecesary closing/openning session could improve performance.
In terms of safeness this timestamp (I do not understand) in my opinion should be rather transaction wise not session wise?
Wouldn't it be better if this "session timestamp" was updated during beginTransaction() and transaction.commit()?
(maybe what I need is just a simple link to doc I couldn't find - about the way (ideas) hibernates manage "cache+transaction+timestamp" ).