modification des contact ajout couleur
This commit is contained in:
parent
9b5a8c065c
commit
54bf69a436
|
@ -11,4 +11,7 @@
|
|||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="jpab" />
|
||||
</component>
|
||||
</project>
|
|
@ -11,6 +11,7 @@ public class Contact {
|
|||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private int id;
|
||||
private String couleur;
|
||||
private String nom;
|
||||
private String prenom;
|
||||
private String telephone;
|
||||
|
@ -25,7 +26,8 @@ public class Contact {
|
|||
public Contact() {
|
||||
}
|
||||
|
||||
public Contact(String nom, String prenom, String telephone, String email, String adresse, LocalDate dateNaissance, Team team) {
|
||||
public Contact(String couleur, String nom, String prenom, String telephone, String email, String adresse, LocalDate dateNaissance, Team team) {
|
||||
this.couleur = couleur;
|
||||
this.nom = nom;
|
||||
this.prenom = prenom;
|
||||
this.telephone = telephone;
|
||||
|
@ -43,6 +45,14 @@ public class Contact {
|
|||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCouleur() {
|
||||
return couleur;
|
||||
}
|
||||
|
||||
public void setCouleur(String couleur) {
|
||||
this.couleur = couleur;
|
||||
}
|
||||
|
||||
public String getNom() {
|
||||
return nom;
|
||||
}
|
||||
|
@ -94,6 +104,7 @@ public class Contact {
|
|||
public Team getTeam() {
|
||||
return team;
|
||||
}
|
||||
|
||||
public void setTeam(Team team) {
|
||||
this.team = team;
|
||||
}
|
||||
|
@ -102,6 +113,7 @@ public class Contact {
|
|||
public String toString() {
|
||||
return "Contact{" +
|
||||
"id=" + id +
|
||||
", couleur='" + couleur + '\'' +
|
||||
", nom='" + nom + '\'' +
|
||||
", prenom='" + prenom + '\'' +
|
||||
", telephone='" + telephone + '\'' +
|
||||
|
|
Loading…
Reference in New Issue