39 lines
881 B
Java
39 lines
881 B
Java
package enseirb.myinpulse.model;
|
|
|
|
import jakarta.persistence.*;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
@Entity
|
|
@Table(name = "report")
|
|
public class Report {
|
|
|
|
@Id
|
|
@NotNull
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long idReport;
|
|
|
|
private String reportContent;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "idAppointment")
|
|
private Appointment appointmentReport;
|
|
|
|
public Report() {}
|
|
|
|
public Report(Long idReport, String reportContent) {
|
|
this.idReport = idReport;
|
|
this.reportContent = reportContent;
|
|
}
|
|
|
|
public String getReportContent() {
|
|
return reportContent;
|
|
}
|
|
|
|
public void setReportContent(String reportContent) {
|
|
this.reportContent = reportContent;
|
|
}
|
|
}
|