Ejemplo n.º 1
0
  private void deleteProjectWithMembers() throws DAOException {

    projectService.delete(project);

    for (Member member : members) {
      memberService.delete(member);
    }
  }
Ejemplo n.º 2
0
  private void createProjectWithMembers() throws DAOException {

    for (Member member : members) {
      memberService.create(member);
    }
    project.setMembers(members);

    Long idProject = projectService.create(project);
    project.setId(idProject);
  }