lishunli / nutz

Automatically exported from code.google.com/p/nutz
0 stars 0 forks source link

NutDao中加入乐观锁机制 #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
问题产生的条件:
    高并发下的数据库写操作可能会导致同一数据被不同的人同时修改,引起业务上的错误。

发生问题的调用代码:

异常堆栈:

相关日志:

Original issue reported on code.google.com by xjf1986...@gmail.com on 7 Feb 2010 at 8:52

GoogleCodeExporter commented 9 years ago
请参看:  
http://code.google.com/p/nutz/wiki/dao_transaction#设置事务的级别

这个完全依靠 JDBC 的规范

Original comment by zozoh...@gmail.com on 9 Feb 2010 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by xjf1986...@gmail.com on 15 Mar 2010 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 13 May 2010 at 11:03