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")
|
@OneToMany(mappedBy = "commision")
|
||||||
private List<Assignment> assignments;
|
private List<Assignment> assignments;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Commision
|
||||||
|
*
|
||||||
|
* @param user user assign to the group
|
||||||
|
*/
|
||||||
public Commision(User user) {
|
public Commision(User user) {
|
||||||
this.commisionDate = new Timestamp(System.currentTimeMillis());
|
this.commisionDate = new Timestamp(System.currentTimeMillis());
|
||||||
this.commisionOwner = user;
|
this.commisionOwner = user;
|
||||||
@ -36,14 +41,29 @@ public class Commision {
|
|||||||
public Commision() {
|
public Commision() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* getId
|
||||||
|
*
|
||||||
|
* @return id
|
||||||
|
*/
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return this.id;
|
return this.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* getCommisionDate
|
||||||
|
*
|
||||||
|
* @return commisionDate
|
||||||
|
*/
|
||||||
public Timestamp getCommisionDate() {
|
public Timestamp getCommisionDate() {
|
||||||
return commisionDate;
|
return commisionDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* getCommisionOwner
|
||||||
|
*
|
||||||
|
* @return commisionOwner
|
||||||
|
*/
|
||||||
public User getCommisionOwner() {
|
public User getCommisionOwner() {
|
||||||
return commisionOwner;
|
return commisionOwner;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user