feat: add commentaire field to licence modal
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user