key = new PkonlyKey();
key.setId(new Integer(7));
key.setSeqNum(new Integer(8));
dao.insert(key);
PkonlyExample example = new PkonlyExample();
example.createCriteria().andIdGreaterThan(new Integer(4));
key = new PkonlyKey();
key.setSeqNum(new Integer(3));
int rows = dao.updateByExampleSelective(key, example);
assertEquals(2, rows);
example.clear();
example.createCriteria()
.andIdEqualTo(new Integer(5))
.andSeqNumEqualTo(new Integer(3));
rows = dao.countByExample(example);
assertEquals(1, rows);
example.clear();
example.createCriteria()
.andIdEqualTo(new Integer(7))
.andSeqNumEqualTo(new Integer(3));
rows = dao.countByExample(example);
assertEquals(1, rows);