經安全檢測,此網站為安全網站,請放心前往原始網址!

Deadlock problems with Hibernate/Spring/MS-SQL (Object Relational Mapping forum at JavaRanch)

For MS SQL solution is pretty simple. To avoid deadlocks never read after you wrote. Point is if you begin transaction then you are in risk of dead locks. So do it this way: first load all the data you need then process this data and then do all updates.

www.coderanch.com

網址安全性掃描由 google 提供