fix(client): Ajout de la propriété photoUrl dans MembreDTO côté client
- Ajout du champ photoUrl avec @Size(max=255) pour aligner avec le DTO serveur - Ajout des getters et setters correspondants - Résout l'erreur PropertyNotFoundException lors de l'affichage des membres
This commit is contained in:
@@ -59,6 +59,9 @@ public class MembreDTO implements Serializable {
|
||||
@Size(max = 20, message = "Le type d'identité ne peut pas dépasser 20 caractères")
|
||||
private String typeIdentite;
|
||||
|
||||
@Size(max = 255, message = "L'URL de la photo ne peut pas dépasser 255 caractères")
|
||||
private String photoUrl;
|
||||
|
||||
@NotNull(message = "Le statut est obligatoire")
|
||||
private String statut;
|
||||
|
||||
@@ -149,6 +152,9 @@ public class MembreDTO implements Serializable {
|
||||
public String getModifiePar() { return modifiePar; }
|
||||
public void setModifiePar(String modifiePar) { this.modifiePar = modifiePar; }
|
||||
|
||||
public String getPhotoUrl() { return photoUrl; }
|
||||
public void setPhotoUrl(String photoUrl) { this.photoUrl = photoUrl; }
|
||||
|
||||
// Propriétés dérivées
|
||||
public String getNomComplet() {
|
||||
return (prenom != null ? prenom : "") + " " + (nom != null ? nom : "");
|
||||
|
||||
Reference in New Issue
Block a user