Added Assignment
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
dc3a554ed1
commit
9ed4197005
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user