Commit e45408d3 authored by Mathieu Gicquel's avatar Mathieu Gicquel
Browse files

Create project creator association - Fix #16

parent d57d0000
......@@ -192,7 +192,7 @@ public abstract class AbstractProject extends AbstractServerObject implements IP
}
@Override
public final void setCreator(final IParticipant c) {
public void setCreator(final IParticipant c) {
this.creator = c;
}
......
......@@ -13,11 +13,13 @@ public class Project extends AbstractProject implements IProject {
private ReferenceToProjects subprojects;
private ReferenceProjectToTask tasks;
private SingleReference<IParticipant> creator;
public Project() {
super();
this.subprojects = new ReferenceToProjects();
this.tasks = new ReferenceProjectToTask(this);
this.creator = new ReferenceToUser();
}
public Project(IProject autre) {
......@@ -81,7 +83,11 @@ public class Project extends AbstractProject implements IProject {
@Override
public IParticipant getCreator() {
return null;
return this.creator.get();
}
public void setCreator(IParticipant p) {
this.creator.set(p);
}
@Override
......@@ -108,4 +114,5 @@ public class Project extends AbstractProject implements IProject {
public MultipleReference<IProject> getSubprojectReference() {
return this.subprojects;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment