160161162163164165166167168169170
// 分页,注意,ANSI SQL中不支持分页! List<Entity> pagedEntityList = session.page(null, where, 0, 20, new EntityHandler()); log.info("{}", pagedEntityList); session.commit(); } catch (Exception e) { session.quietRollback(); } finally { session.close(); }