concept for assigmnents
This commit is contained in:
parent
ec77fa782b
commit
4efedf7f35
@ -16,8 +16,8 @@ public class Assignment {
|
||||
@JoinColumn(name = "group_id")
|
||||
private Groups group;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "user_id")
|
||||
private User user;
|
||||
@JoinColumn(name = "commision_id")
|
||||
private Commision commision;
|
||||
|
||||
public Assignment() {
|
||||
}
|
||||
|
33
buisnesslogic/src/main/java/com/plannaplan/entities/Commision.java
Executable file
33
buisnesslogic/src/main/java/com/plannaplan/entities/Commision.java
Executable file
@ -0,0 +1,33 @@
|
||||
package com.plannaplan.entities;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
|
||||
@Entity
|
||||
public class Commision {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private Long id;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "owner_id")
|
||||
private User commisionOwner;
|
||||
private Timestamp commisionDate;
|
||||
|
||||
public Commision() {
|
||||
}
|
||||
|
||||
public Timestamp getCommisionDate() {
|
||||
return commisionDate;
|
||||
}
|
||||
|
||||
public User getCommisionOwner() {
|
||||
return commisionOwner;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user