Added accepted status to assignments

This commit is contained in:
Filip Izydorczyk 2021-01-02 14:01:50 +01:00
parent a41c6f2583
commit ff9aa64470

View File

@ -25,6 +25,7 @@ public class Assignment {
@JoinColumn(name = "commision_id")
private Commision commision;
private boolean isPastAssignment;
private boolean isAccepted;
/**
* Assignment
@ -36,6 +37,25 @@ public class Assignment {
public Assignment(Groups group, Commision commision, boolean isPastAssignment) {
this.commision = commision;
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;
}
/**