Esempio n. 1
0
 public void patch(Dependency dependency) {
   DependencyExample example = new DependencyExample();
   example
       .createCriteria()
       .andIdEqualTo(dependency.getId())
       .andProjectIdEqualTo(dependency.getProjectId());
   dependencyMapper.updateByExampleSelective(dependency, example);
 }
Esempio n. 2
0
 public void deleteDependencyByProjectId(int projectId) {
   DependencyExample example = new DependencyExample();
   example.createCriteria().andProjectIdEqualTo(projectId);
   dependencyMapper.deleteByExample(example);
 }
Esempio n. 3
0
 public List<Dependency> list(int projectId) {
   DependencyExample example = new DependencyExample();
   example.createCriteria().andProjectIdEqualTo(projectId);
   return dependencyMapper.selectByExample(example);
 }