Ajout class
This commit is contained in:
parent
efa6e62984
commit
8e79242d21
|
@ -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() {
|
||||
}
|
||||
|
|
|
@ -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 +*/
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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> {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue