hibernate实现数据库操作的乐观锁和悲观锁参看:https://blog.csdn.net/chang_ge/article/details/79695813https://www.cnblogs.com/otomedaybreak/archive/2012/01/27/2330008.html#C1