Hibernate flush理解

2015-12-05
阅读 1 分钟
5.7k
在spring框架没有事务的情况下,通过hibernate的session.save(entity),无法将数据持久化至数据库中,即使强制刷新后(flush())后也同样如此。