日期:2014-05-19 浏览次数:20605 次
The given object has a null identifier: com.gf.po.User; nested exception is org.hibernate.TransientObjectException: The given object has a null identifier: com.gf.po.User
public String modifyUser(T user) throws Exception{
dao.updateObject(user);
return "success";
}
public <T> void updateObject(T clazz){
this.getHibernateTemplate().update(clazz);
}