struts + hibernate 注册问题 麻烦会的说下
这是DAO方法
public void save(Caiwugl transientInstance) {
log.debug("saving Caiwugl instance");
try {
getSession().save(transientInstance);
tr.commit();
HibernateFactory.closeSession();(这是我自己加的 不加数据库里也没数据 只显示条数)
log.debug("save successful");
} catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
我用它自己生成的save方法 mysql数据库有显示条数 但就是没数据