hibernate實現數據庫操做的樂觀鎖和悲觀鎖參看:https://blog.csdn.net/chang_ge/article/details/79695813https://www.cnblogs.com/otomedaybreak/archive/2012/01/27/2330008.html#C1html