pojos.initPet();
dao.insert(Pet.create(8));
assertEquals(8, dao.count(Pet.class));
Sql sql = Sqls.queryEntity("SELECT * FROM t_pet $condition LIMIT @off,@size ");
sql.setEntity(dao.getEntity(Pet.class));
sql.params().set("off", 2).set("size", 2);
sql.setCondition(Cnd.orderBy().asc("name"));
dao.execute(sql);
List<Pet> pets = sql.getList(Pet.class);
assertEquals(2, pets.size());
assertEquals("pet_02", pets.get(0).getName());