Thread:
 How to know then that entity has become stale? 
 vijpan   12 Dec 2003, 20:34 
 Re: How to know then that entity has become sta... 
 gavin   13 Dec 2003, 03:18 
 Re: How to know then that entity has become ... 
 vijpan   15 Dec 2003, 17:56 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: gavin (13 Dec 2003, 03:18) Replies: 1, Views: 37743
Subject: Re: How to know then that entity has become stale?
On 12 Dec 2003 20:34, vijpan wrote:

>In case of optimistic concurrency if you dont access the database how
>can you be sure that you are not trying to update the stale data?

Hibernate does a version number or timestamp check in the SQL UPDATE.
This is standard Hibernate functionality.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]