commit | 7d981560bceb7891393b34027c80654f5a7058cb | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Wed Jan 14 09:07:12 2009 -0800 |
committer | Shawn O. Pearce <sop@google.com> | Wed Jan 14 10:06:52 2009 -0800 |
tree | f773497c3e08c5a1e6ef7ee350c65f0f28cbfc01 | |
parent | cdba3ea1e17ce1438b428051e42621cfd6a18b81 [diff] |
Throw OrmConcurrencyException when optimistic locking fails If an entity is using @RowVersion to protect itself from concurrent updates we may be able to detect concurrent updates when the UPDATE SQL returns 0 rows affected. In such a case the caller may need to handle the exception specially by retrying the operation. Signed-off-by: Shawn O. Pearce <sop@google.com>