Hibernate3 dynamicUpdate

@org.hibernate.annotations.Entity(dynamicUpdate = true)

for Hibernate3

Remark: select record from id first and then set value of you want to update value. as below (BaseService):

Object objExist = getObject(className,Integer.parseInt(uid));

objExist = setUpdateValue(objExist,StaticUtil.PACKAGE_PATH+className,properties);

entity = baseDao.update(objExist);

猜你喜欢

转载自roddy.iteye.com/blog/2306556