identifier of an instance of com.edu.zidonghua.po.TbUser was altered from 2 to null
2013-08-25 01:53
761 查看
使用BeanUtils.copyProperties()方法copy两个对象;错误发现了: 原来使用的是org.apache.commons.beanutils.BeanUtils的copyProperties()方法 import org.apache.commons.beanutils.BeanUtils;
copyProperties(Object dest, Object orig) 第一个参数是目标对象,第二个参数是源对象;我把两个对象写反了: BeanUtils.copyProperties(bkHotKeyword,wsHotKeywordDto);
使用org.springframework.beans.BeanUtils的copyProperties()方法
import org.springframework.beans.BeanUtils;
copyProperties(Object sourth, Object target) 左边是源对象,右边是目标对象;
copyProperties(Object dest, Object orig) 第一个参数是目标对象,第二个参数是源对象;我把两个对象写反了: BeanUtils.copyProperties(bkHotKeyword,wsHotKeywordDto);
使用org.springframework.beans.BeanUtils的copyProperties()方法
import org.springframework.beans.BeanUtils;
copyProperties(Object sourth, Object target) 左边是源对象,右边是目标对象;
相关文章推荐
- Hibernate学习: 异常 identifier of an instance of com.zhssh.vo.TUser was altered from 1 to 1
- identifier of an instance of com.jh.oa.bpm.model.JhBpmFormdata was altered from 266 to 267
- 【hibernate】错误:org.hibernate.HibernateException: identifier of an instance of com.agen.entity.Monthdetail was altered from xx to xx
- identifier of an instance of com.you.hibernate.model.TStudentInfo was altered from 6 to 7
- org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X
- 遇到错误 org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X 将int
- identifier of an instance of XXX was altered from 75
- org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X
- org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X
- EJB3 Exception:identifier of an instance of net.model.entity.Role was altered from 2 to 0
- EJB3 Exception:identifier of an instance of net.model.entity.Role was altered from 2 to 0
- HibernateException异常:identifier of an instance of bean was altered from 1 to 1(持久化对象ID变更)
- HibernateException: identifier of an instance of pojo.Order was altered from 23
- merge对比引发的identifier of an instance of entity was altered from .. to ..报错
- identifier of an instance was altered from XXXX to XXXX解决
- identifier of an instance ...... altered from ** to **
- identifier of an instance of Object is altered from 2 to 5
- Caused by: org.hibernate.HibernateException: identifier of an instance of ... is alterde from
- Creating An Instance Of The Com Component With Clsid {b9425246-4131-11d2-be48-004005a04edf} From The Iclassfactory Failed Due To The Following Error
- identifier of an instance of .. altered to null ---- hibernate exception