34 lines
704 B
Java
Executable File
34 lines
704 B
Java
Executable File
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;
|
|
}
|
|
|
|
}
|