feat(adherent): réintégration du numéro de téléphone

This commit is contained in:
2026-06-24 10:18:44 +02:00
parent 754a0c8dcc
commit d0fde2f2e8
6 changed files with 33 additions and 3 deletions
@@ -35,6 +35,9 @@ public class Adherent {
@Column(nullable = false, length = 100)
private String email;
@Column(length = 20)
private String telephone;
@Column(name = "representant_legal", length = 150)
private String representantLegal;
@@ -78,6 +81,9 @@ public class Adherent {
public String getEmail() { return email; }
public void setEmail(String email) { this.email = email; }
public String getTelephone() { return telephone; }
public void setTelephone(String telephone) { this.telephone = telephone; }
public String getRepresentantLegal() { return representantLegal; }
public void setRepresentantLegal(String representantLegal) { this.representantLegal = representantLegal; }
@@ -33,6 +33,9 @@ public class PreInscription {
@Column(nullable = false, length = 150)
private String email;
@Column(length = 20)
private String telephone;
@Column(name = "representant_legal", length = 150)
private String representantLegal;
@@ -74,6 +77,9 @@ public class PreInscription {
public String getEmail() { return email; }
public void setEmail(String email) { this.email = email; }
public String getTelephone() { return telephone; }
public void setTelephone(String telephone) { this.telephone = telephone; }
public String getRepresentantLegal() { return representantLegal; }
public void setRepresentantLegal(String representantLegal) { this.representantLegal = representantLegal; }
@@ -42,6 +42,7 @@ public class PreInscriptionService {
adherent.setLieuNaissancePays(pre.getLieuNaissancePays());
adherent.setNationalite(pre.getNationalite());
adherent.setEmail(pre.getEmail());
adherent.setTelephone(pre.getTelephone());
adherent.setRepresentantLegal(pre.getRepresentantLegal());
// Par défaut
adherent.setSexe("MASCULIN");
@@ -0,0 +1,2 @@
ALTER TABLE adherent ADD COLUMN telephone VARCHAR(20);
ALTER TABLE pre_inscription ADD COLUMN telephone VARCHAR(20);