@Test
public void testPKBlobsUpdateByExampleSelective() {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
PkblobsMapper mapper = sqlSession.getMapper(PkblobsMapper.class);
PkblobsWithBLOBs record = new PkblobsWithBLOBs(3,
generateRandomBlob(), generateRandomBlob(), "Long String 1");
mapper.insert(record);
record = new PkblobsWithBLOBs(6, generateRandomBlob(),
generateRandomBlob(), "Long String 2");
mapper.insert(record);
PkblobsWithBLOBs newRecord = new PkblobsWithBLOBs(null,
generateRandomBlob(), null, null);
PkblobsExample example = new PkblobsExample();
example.createCriteria().andIdGreaterThan(4);
int rows = mapper.updateByExampleSelective(newRecord, example);
assertEquals(1, rows);
List<PkblobsWithBLOBs> answer = mapper
.selectByExampleWithBLOBs(example);
assertEquals(1, answer.size());
PkblobsWithBLOBs returnedRecord = answer.get(0);