@Test
public void testFieldsBlobsUpdateByExampleWithBLOBs() {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
FieldsblobsMapper mapper = sqlSession
.getMapper(FieldsblobsMapper.class);
FieldsblobsWithBLOBs record = new FieldsblobsWithBLOBs("Jeff",
"Smith", generateRandomBlob(), generateRandomBlob(), null);
mapper.insert(record);
record = new FieldsblobsWithBLOBs("Scott", "Jones",
generateRandomBlob(), generateRandomBlob(), null);
mapper.insert(record);
FieldsblobsWithBLOBs newRecord = new FieldsblobsWithBLOBs("Scott",
"Doe", null, null, null);
FieldsblobsExample example = new FieldsblobsExample();
example.createCriteria().andFirstnameLike("S%");
int rows = mapper.updateByExampleWithBLOBs(newRecord, example);
assertEquals(1, rows);
List<FieldsblobsWithBLOBs> answer = mapper
.selectByExampleWithBLOBs(example);
assertEquals(1, answer.size());
FieldsblobsWithBLOBs returnedRecord = answer.get(0);