首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > PowerDesigner >

hibernate annotation 的配置有关问题 property dynamic-update

2012-11-15 
hibernate annotation 的配置问题 property dynamic-update在hbm.xml 属性里面配置property nameuserNa

hibernate annotation 的配置问题 property dynamic-update
在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) 2 楼 Jackie_GP 2011-09-23   我采用注解的方式,为什么不起作用呢?

热点排行