PkfieldsExample example = new PkfieldsExample();
example.createCriteria().andLastnameLike("J%");
int rows = dao.updateByExampleSelective(record, example);
assertEquals(1, rows);
example.clear();
example.createCriteria()
.andFirstnameEqualTo("Fred")
.andLastnameEqualTo("Jones")
.andId1EqualTo(new Integer(3))
.andId2EqualTo(new Integer(4));