hibernate默认在update时,修改对应记录的所有的字段,如果想要只修改被改变的对象的属性字段,在hibenate.cfg.xml中加入 <property name="dynamic-update">true</property>