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