Hi
 
See http://sourceforge.net/forum/forum.php?thread_id=1172073&forum_id=376422
 
You must add a field 'Version' on your object and have an Update statement like
 'Update Table set ... [EMAIL PROTECTED] where ... and version = @version.
 and do sqlMap.Update(...)
 In the SqlMapper method Update, I have check that update statement affected a row, if not I throw a throw new ConcurrentException; which is what you want.
 
In the next version of the framework, the SqlMapper Update method will not do check and not throw an exception.

You will have to do somethink like
int rowCount = sqlMap.Update(...)
if (rowCount==0) throw SomeException...
-Gilles
>
> My English is not good :( But I've found exactly the same that I whant:
>
> http://nhibernate.sourceforge.net/h2.0.3-docs/reference/html/transactions.ht
> ml#transactions-s3-3
>
> Is there something like "Application version checking" in the iBATIS?
>
> Thank you.
>
>
> ___________________________________________________________________________
>
> This communication is confidential and may be legally privileged.
> If you believe you are not an intended recipient, please inform the sender,
> delete the e-mail and do not copy, print or use it or disclose it to others.
> You can inform the sender by replying to this e-mail or by telephone (+380 44 4906080).
>
>


Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,34 /mn) ; tél : 08 92 68 13 50 (0,34/mn)

Reply via email to