49 lines
1.1 KiB
Java
49 lines
1.1 KiB
Java
package enseirb.myinpulse.model;
|
|
|
|
import jakarta.persistence.*;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "report")
|
|
public class Report {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long idReport;
|
|
|
|
private String reportContent;
|
|
|
|
@OneToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "idAppointment")
|
|
private Appointment appointmentReport;
|
|
|
|
public Report() {}
|
|
|
|
public Report(Long idReport, String reportContent) {
|
|
this.idReport = idReport;
|
|
this.reportContent = reportContent;
|
|
}
|
|
|
|
public Long getIdReport() {
|
|
return idReport;
|
|
}
|
|
|
|
public String getReportContent() {
|
|
return reportContent;
|
|
}
|
|
|
|
public void setReportContent(String reportContent) {
|
|
this.reportContent = reportContent;
|
|
}
|
|
|
|
public Appointment getAppointmentReport() {
|
|
return appointmentReport;
|
|
}
|
|
|
|
public void setAppointmentReport(Appointment appointmentReport) {
|
|
this.appointmentReport = appointmentReport;
|
|
}
|
|
}
|