hibernate 调用save方法出错
public void save(Namecard transientInstance) {
try {
getHibernateTemplate().save(transientInstance);
} catch (RuntimeException re) {
throw re;
}
}
系统不报错,会走到异常。如下:
public InvocationTargetException(Throwable target) {
super((Throwable)null); // Disallow initCause
this.target = target;
}
传过来的对象没有错误,就是保存不了是因为什么。