#21 -- Add report period entity
This commit is contained in:
parent
a4978fd2af
commit
48c614a9ca
33
src/main/java/ru/ulstu/report/model/ReportPeriod.java
Normal file
33
src/main/java/ru/ulstu/report/model/ReportPeriod.java
Normal file
@ -0,0 +1,33 @@
|
||||
package ru.ulstu.report.model;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Temporal;
|
||||
import jakarta.persistence.TemporalType;
|
||||
import ru.ulstu.model.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Entity
|
||||
public class ReportPeriod extends BaseEntity {
|
||||
@Temporal(TemporalType.DATE)
|
||||
private Date startDate;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
private Date endDate;
|
||||
|
||||
public Date getStartDate() {
|
||||
return startDate;
|
||||
}
|
||||
|
||||
public void setStartDate(Date startDate) {
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
public Date getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
|
||||
public void setEndDate(Date endDate) {
|
||||
this.endDate = endDate;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user