record.setIntegerfield(9);
dao.insert(record);
FieldsonlyExample example = new FieldsonlyExample();
example.createCriteria().andIntegerfieldGreaterThan(5);
int rows = dao.countByExample(example);
assertEquals(2, rows);
example.clear();
rows = dao.countByExample(example);
assertEquals(3, rows);