public void patch(Dependency dependency) { DependencyExample example = new DependencyExample(); example .createCriteria() .andIdEqualTo(dependency.getId()) .andProjectIdEqualTo(dependency.getProjectId()); dependencyMapper.updateByExampleSelective(dependency, example); }
public Dependency select(int id) { return dependencyMapper.selectByPrimaryKey(id); }
public void deleteDependencyByProjectId(int projectId) { DependencyExample example = new DependencyExample(); example.createCriteria().andProjectIdEqualTo(projectId); dependencyMapper.deleteByExample(example); }
public void delete(int id) { dependencyMapper.deleteByPrimaryKey(id); }
public void insert(Dependency dependency) { dependencyMapper.insertSelective(dependency); }
public List<Dependency> list(int projectId) { DependencyExample example = new DependencyExample(); example.createCriteria().andProjectIdEqualTo(projectId); return dependencyMapper.selectByExample(example); }
public List<Dependency> list() { return dependencyMapper.selectByExample(new DependencyExample()); }