190191192193194195196197198199200
key = new Pkonly(); key.setSeqNum(3); int rows = mapper.updateByExampleSelective(key, example); assertEquals(2, rows); example.clear(); example.createCriteria() .andIdEqualTo(5) .andSeqNumEqualTo(3); rows = mapper.countByExample(example);
198199200201202203204205206207208
.andSeqNumEqualTo(3); rows = mapper.countByExample(example); assertEquals(1, rows); example.clear(); example.createCriteria() .andIdEqualTo(7) .andSeqNumEqualTo(3); rows = mapper.countByExample(example);
240241242243244245246247248249250
key.setSeqNum(3); key.setId(22); int rows = mapper.updateByExample(key, example); assertEquals(1, rows); example.clear(); example.createCriteria() .andIdEqualTo(22) .andSeqNumEqualTo(3); rows = mapper.countByExample(example);