Test For Auto-Commit Mode
query.list()(session)} 你可以看到,我们可以在withSession之外定义查询,只有在实际执行查询时才需要一个Session对象,要注意的是Session的缺省模式为自动提交(auto-commit