Added accepted status to assignments
This commit is contained in:
parent
a41c6f2583
commit
ff9aa64470
@ -25,6 +25,7 @@ public class Assignment {
|
|||||||
@JoinColumn(name = "commision_id")
|
@JoinColumn(name = "commision_id")
|
||||||
private Commision commision;
|
private Commision commision;
|
||||||
private boolean isPastAssignment;
|
private boolean isPastAssignment;
|
||||||
|
private boolean isAccepted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assignment
|
* Assignment
|
||||||
@ -36,6 +37,25 @@ public class Assignment {
|
|||||||
public Assignment(Groups group, Commision commision, boolean isPastAssignment) {
|
public Assignment(Groups group, Commision commision, boolean isPastAssignment) {
|
||||||
this.commision = commision;
|
this.commision = commision;
|
||||||
this.group = group;
|
this.group = group;
|
||||||
|
this.isAccepted = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If it returns trues it mesans u are assigned to group accepted by algorythm
|
||||||
|
*
|
||||||
|
* @return boolean isAccepted
|
||||||
|
*/
|
||||||
|
public boolean isAccepted() {
|
||||||
|
return isAccepted;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set is accepted by algorythm
|
||||||
|
*
|
||||||
|
* @param isAccepted boolean isAccepted
|
||||||
|
*/
|
||||||
|
public void setAccepted(boolean isAccepted) {
|
||||||
|
this.isAccepted = isAccepted;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user