SSH之HibernateTemplate 使用
异常信息是
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);
}