hibernate update 不报错

场景:hibernate的update()步骤无法更新,不报错

hibernate的update()方法无法更新,不报错

原因是hibernate的update方法操作的是缓存,可以flush下先。

设置缓存为false理论上也可。