62 lines
1.5 KiB
Java
62 lines
1.5 KiB
Java
package enseirb.myinpulse.model;
|
|
|
|
import jakarta.persistence.*;
|
|
|
|
@Entity
|
|
@Table(name = "annotation")
|
|
public class Annotation {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long idAnnotation;
|
|
|
|
private String comment;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "idSectionCell")
|
|
private SectionCell sectionCellAnnotation;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "idAdministrator")
|
|
private Administrator administratorAnnotation;
|
|
|
|
public Annotation() {}
|
|
|
|
public Annotation(Long idAnnotation, String commentary) {
|
|
this.idAnnotation = idAnnotation;
|
|
this.comment = comment;
|
|
}
|
|
|
|
public String getComment() {
|
|
return comment;
|
|
}
|
|
|
|
public void setComment(String comment) {
|
|
this.comment = comment;
|
|
}
|
|
|
|
public Long getIdAnnotation() {
|
|
return idAnnotation;
|
|
}
|
|
|
|
public void setIdAnnotation(Long idAnnotation) {
|
|
this.idAnnotation = idAnnotation;
|
|
}
|
|
|
|
public SectionCell getSectionCellAnnotation() {
|
|
return sectionCellAnnotation;
|
|
}
|
|
|
|
public void setSectionCellAnnotation(SectionCell sectionCellAnnotation) {
|
|
this.sectionCellAnnotation = sectionCellAnnotation;
|
|
}
|
|
|
|
public Administrator getAdministratorAnnotation() {
|
|
return administratorAnnotation;
|
|
}
|
|
|
|
public void setAdministratorAnnotation(Administrator administratorAnnotation) {
|
|
this.administratorAnnotation = administratorAnnotation;
|
|
}
|
|
}
|