Ajout class
This commit is contained in:
parent
efa6e62984
commit
8e79242d21
3 changed files with 15 additions and 10 deletions
|
@ -14,9 +14,9 @@ public class Contact {
|
||||||
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() {
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 +*/
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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> {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue