关于hibernate的save问题
session.save(college);
LogUtil.log.info("check:will to execute tx commit :save college");
System.out.println("will execute commit");
tx.commit();
日志:
Hibernate: insert into COLLEGE (NO, NAME) values (?, ?)
2008/02/22 16:57:42:671 CST [INFO] LogUitl :----- - check:will to execute tx commit :save college
为会么在我提交事务前,insert into COLLEGE (NO, NAME) values (?, ?)语句就出来了?