feat: add commentaire field to licence modal

This commit is contained in:
2026-07-05 12:38:39 +02:00
parent 19cee92437
commit 6dd45deb8c
4 changed files with 20 additions and 2 deletions
@@ -41,6 +41,9 @@ public class Licence {
@Column(name = "type_licence", length = 50)
private String typeLicence;
@Column(columnDefinition = "TEXT")
private String commentaire;
@OneToMany(mappedBy = "licence", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Paiement> paiements = new ArrayList<>();
@@ -128,6 +131,9 @@ public class Licence {
public String getTypeLicence() { return typeLicence; }
public void setTypeLicence(String typeLicence) { this.typeLicence = typeLicence; }
public String getCommentaire() { return commentaire; }
public void setCommentaire(String commentaire) { this.commentaire = commentaire; }
public List<Paiement> getPaiements() { return paiements; }
public void setPaiements(List<Paiement> paiements) { this.paiements = paiements; }
@@ -0,0 +1 @@
ALTER TABLE licence ADD COLUMN commentaire TEXT;