@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); }
@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; }