Fix: renamed all the tables, with repo and controller associated to them (might have missed some), and fix some key dependency issues
This commit is contained in:
MyINPulse-back/src/main
java
enseirb
myinpulse
controller
model
Administrateurs.javaAdministrator.javaAnnotation.javaAppointment.javaComptesRendus.javaDelAppointment.javaDelProject.javaDelReport.javaEntrepreneur.javaEntrepreneurs.javaMakeAppointment.javaProject.javaProjets.javaRendezVous.javaReport.javaSectionCell.javaSections.javaUser.javaUtilisateurs.java
repository
AdministrateursRepository.javaAdministratorRepository.javaAppointmentRepository.javaEntrepreneurRepository.javaEntrepreneursRepository.javaProjectRepository.javaReportRepository.javaSectionCellRepository.javaUserRepository.javaUtilisateursRepository.java
service
AdminApiService.javaEntrepreneurApiService.javaSharedApiService.java
database
CompteRenduService.javaReportService.java
old_controllers_to_convert_to_services
AdministrateursController.javaAdministratorController.javaAppointmentController.javaComptesRendusController.javaEntrepreneurController.javaEntrepreneursController.javaProjectController.javaProjetsController.javaRendezVousController.javaReportController.javaSectionCellController.javaSectionsController.javaUserController.javaUtilisateursController.java
resources
@ -0,0 +1,39 @@
|
||||
package enseirb.myinpulse.model;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
@Entity
|
||||
@Table(name = "annotation")
|
||||
public class Annotation {
|
||||
|
||||
@Id
|
||||
@NotNull
|
||||
@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 setCommentary(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user