Ajout class

This commit is contained in:
Hedi 2021-12-14 00:06:28 +01:00
parent efa6e62984
commit 8e79242d21
3 changed files with 15 additions and 10 deletions

View file

@ -8,15 +8,15 @@ public class Contact {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
private int id; private int id;
private String nom ; private String nom;
private String prenom; private String prenom;
private String telephone; private String telephone;
private String email; private String email;
private String adresse; private String adresse;
private LocalDate dateNaissance; private LocalDate dateNaissance;
@ManyToOne(fetch= FetchType.EAGER) /* @ManyToOne(fetch= FetchType.EAGER)
@JoinColumn(name="TEAM_ID") @JoinColumn(name="TEAM_ID")
private Team team; private Team team;*/
public Contact() { public Contact() {
} }

View file

@ -16,9 +16,9 @@ public class Membre {
private String password; private String password;
private String isAdmin; private String isAdmin;
private String couleur; private String couleur;
@ManyToOne(fetch= FetchType.EAGER) /* @ManyToOne(fetch= FetchType.EAGER)
@JoinColumn(name="TEAM_ID") @JoinColumn(name="TEAM_ID")
private Team team; private Team team;*/
// @ManyToOne // @ManyToOne
// private Smiley smiley; // private Smiley smiley;
@ -33,7 +33,7 @@ public class Membre {
this.password = password; this.password = password;
this.isAdmin = isAdmin; this.isAdmin = isAdmin;
this.couleur = couleur; this.couleur = couleur;
this.team = team; /* this.team = team;*/
} }
public int getId() { public int getId() {
@ -78,12 +78,12 @@ public class Membre {
public void setIsAdmin(String isAdmin) { public void setIsAdmin(String isAdmin) {
this.isAdmin = isAdmin; this.isAdmin = isAdmin;
} }
public Team getTeam() { /* public Team getTeam() {
return team; return team;
} }
public void setTeam(Team team) { public void setTeam(Team team) {
this.team = team; this.team = team;
} }*/
public String getCouleur() { public String getCouleur() {
return couleur; return couleur;
@ -104,7 +104,7 @@ public class Membre {
", password='" + password + '\'' + ", password='" + password + '\'' +
", isAdmin='" + isAdmin + '\'' + ", isAdmin='" + isAdmin + '\'' +
", couleur='" + couleur + '\'' + ", couleur='" + couleur + '\'' +
", team=" + team + /*", team=" + team +*/
'}'; '}';
} }
} }

View file

@ -1,4 +1,9 @@
package fr.organizee.repository; package fr.organizee.repository;
public interface MembreRepository { import fr.organizee.model.Membre;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface MembreRepository extends JpaRepository<Membre, Integer> {
} }