hibernate annotation 的配置有关问题 property dynamic-update
hibernate annotation 的配置问题 property dynamic-update
在hbm.xml 属性里面配置
<property name="userName" dynamic-update="false" dynamic-insert="false"/>
dynamic-update为true,表示更新一个对象时,会生成动态SQL,当属性值发生变化时,才会包含到UPDATE语句中。
在hibernate annotation中如何配置呢?
在hbm.xml 属性里面配置
<property name="userName" dynamic-update="false" dynamic-insert="false"/>
dynamic-update为true,表示更新一个对象时,会生成动态SQL,当属性值发生变化时,才会包含到UPDATE语句中。
在hibernate annotation中如何配置呢?
1 楼
simbalin1979
2008-04-24
追加
@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true)
@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true)
2 楼
Jackie_GP
2011-09-23
我采用注解的方式,为什么不起作用呢?