Fix the implementation of externalCurriculum upload
This commit is contained in:
@ -10,13 +10,9 @@ public class ExternalCurriculum {
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private int id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name="Users")
|
||||
private User user;
|
||||
private Long inscriptionRequestId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name="University")
|
||||
private University university;
|
||||
private String school;
|
||||
|
||||
private String formation;
|
||||
|
||||
@ -32,9 +28,9 @@ public class ExternalCurriculum {
|
||||
|
||||
public ExternalCurriculum(){}
|
||||
|
||||
public ExternalCurriculum(User user, University university, String formation, String completion, int startYear, int endYear, String justifdocUrl, RequestState state){
|
||||
this.user = user;
|
||||
this.university = university;
|
||||
public ExternalCurriculum(Long ir, String school, String formation, String completion, int startYear, int endYear, String justifdocUrl, RequestState state){
|
||||
this.inscriptionRequestId = ir;
|
||||
this.school = school;
|
||||
this.formation = formation;
|
||||
this.completion = completion;
|
||||
this.startYear = startYear;
|
||||
@ -47,20 +43,20 @@ public class ExternalCurriculum {
|
||||
return id;
|
||||
}
|
||||
|
||||
public User getUser() {
|
||||
return user;
|
||||
public Long getInscriptionRequestId() {
|
||||
return inscriptionRequestId;
|
||||
}
|
||||
|
||||
public void setUser(User user) {
|
||||
this.user = user;
|
||||
public void setInscriptionRequest(Long inscriptionRequestId) {
|
||||
this.inscriptionRequestId = inscriptionRequestId;
|
||||
}
|
||||
|
||||
public University getUniversity() {
|
||||
return university;
|
||||
public String getSchool() {
|
||||
return school;
|
||||
}
|
||||
|
||||
public void setUniversity(University university) {
|
||||
this.university = university;
|
||||
public void setSchool(String school) {
|
||||
this.school = school;
|
||||
}
|
||||
|
||||
public String getFormation() {
|
||||
|
@ -15,7 +15,6 @@ public class InscriptionRequest {
|
||||
private String email;
|
||||
private String country;
|
||||
private Date birthDate;
|
||||
|
||||
private Long curriculumId;
|
||||
private RequestState state;
|
||||
private String profilePicture;
|
||||
|
Reference in New Issue
Block a user