Added Assignment

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-11-27 16:45:06 +01:00
parent dc3a554ed1
commit 9ed4197005
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -28,6 +28,11 @@ public class Commision {
@OneToMany(mappedBy = "commision")
private List<Assignment> assignments;
/**
* Commision
*
* @param user user assign to the group
*/
public Commision(User user) {
this.commisionDate = new Timestamp(System.currentTimeMillis());
this.commisionOwner = user;
@ -36,14 +41,29 @@ public class Commision {
public Commision() {
}
/**
* getId
*
* @return id
*/
public Long getId() {
return this.id;
}
/**
* getCommisionDate
*
* @return commisionDate
*/
public Timestamp getCommisionDate() {
return commisionDate;
}
/**
* getCommisionOwner
*
* @return commisionOwner
*/
public User getCommisionOwner() {
return commisionOwner;
}