fix: removed contradictive @NotNull preventing to add data to database.
This commit is contained in:
@ -13,14 +13,14 @@ import java.util.List;
|
||||
public class Administrator extends User {
|
||||
|
||||
@OneToMany(mappedBy = "projectAdministrator", fetch = FetchType.LAZY, orphanRemoval = true)
|
||||
private List<Project> listProject = new ArrayList<>();
|
||||
private final List<Project> listProject = new ArrayList<>();
|
||||
|
||||
/*@OneToMany(mappedBy = "administratorSectionCell", fetch = FetchType.LAZY, orphanRemoval = true)
|
||||
private List<SectionCell> listSectionCell = new ArrayList<>();*/
|
||||
// should now be useless
|
||||
|
||||
@OneToMany(mappedBy = "administratorAnnotation", fetch = FetchType.LAZY, orphanRemoval = true)
|
||||
private List<Annotation> listAnnotation = new ArrayList<>();
|
||||
private final List<Annotation> listAnnotation = new ArrayList<>();
|
||||
|
||||
/*@OneToMany(mappedBy = "administratorAppointment", fetch = FetchType.LAZY, orphanRemoval = true)
|
||||
private final List<Appointment> listAppointment = new ArrayList<>();*/
|
||||
@ -32,12 +32,11 @@ public class Administrator extends User {
|
||||
public Administrator() {}
|
||||
|
||||
public Administrator(
|
||||
Long idUser,
|
||||
String userSurname,
|
||||
String username,
|
||||
String mainMail,
|
||||
String secondaryMail,
|
||||
String phoneNumber) {
|
||||
super(idUser, userSurname, username, mainMail, secondaryMail, phoneNumber);
|
||||
super(null, userSurname, username, mainMail, secondaryMail, phoneNumber);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user