Added the reviewer field to ProjectIdea and fixed an incorrect ORM multiplicity.
This commit is contained in:
parent
7511edbade
commit
8e93e29166
@ -47,9 +47,12 @@ public class ProjectIdea extends DomainObject {
|
|||||||
@ManyToMany
|
@ManyToMany
|
||||||
private List<Student> authors = new ArrayList<Student>();
|
private List<Student> authors = new ArrayList<Student>();
|
||||||
|
|
||||||
@OneToOne
|
@ManyToOne
|
||||||
private Employee preferredSupervisor;
|
private Employee preferredSupervisor;
|
||||||
|
|
||||||
|
@ManyToOne
|
||||||
|
private Employee suggestedReviewer;
|
||||||
|
|
||||||
// Info about external supervisor, if having one
|
// Info about external supervisor, if having one
|
||||||
private String externalSupervisorInfo;
|
private String externalSupervisorInfo;
|
||||||
|
|
||||||
@ -121,6 +124,14 @@ public class ProjectIdea extends DomainObject {
|
|||||||
this.preferredSupervisor = supervisor;
|
this.preferredSupervisor = supervisor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Employee getSuggestedReviewer() {
|
||||||
|
return suggestedReviewer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuggestedReviewer(Employee reviewer) {
|
||||||
|
this.suggestedReviewer = reviewer;
|
||||||
|
}
|
||||||
|
|
||||||
public String getTitle() {
|
public String getTitle() {
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user