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
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String nom ;
private String nom;
private String prenom;
private String telephone;
private String email;
private String adresse;
private LocalDate dateNaissance;
@ManyToOne(fetch= FetchType.EAGER)
/* @ManyToOne(fetch= FetchType.EAGER)
@JoinColumn(name="TEAM_ID")
private Team team;
private Team team;*/
public Contact() {
}

View File

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

View File

@ -1,4 +1,9 @@
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> {
}