Ejemplo n.º 1
0
  @Override
  public Project createProject(Project project, Person person) {
    // TODO Auto-generated method stub

    Group group = new Group(person, project, "owner");
    project.getGroups().add(group);

    return projectRepository.save(project);
  }
Ejemplo n.º 2
0
  @Override
  public Project getProjectInfo(int pid) {
    // TODO Auto-generated method stub
    List<Project> projectList = projectRepository.findByIdx(pid);

    if (projectList.size() > 0) {
      return projectList.get(0);
    }

    return null;
  }