在hbm.xml 属性里面配置
<property name="userName" [color=red][b]dynamic-update="false"[/b][/color] dynamic-insert="false"/>
dynamic-update为true,表示更新一个对象时,会生成动态SQL,当属性值发生变化时,才会包含到UPDATE语句中。
在hibernate annotation中如何配置呢?
<property name="userName" [color=red][b]dynamic-update="false"[/b][/color] dynamic-insert="false"/>
dynamic-update为true,表示更新一个对象时,会生成动态SQL,当属性值发生变化时,才会包含到UPDATE语句中。
在hibernate annotation中如何配置呢?