|
|
@ -9,7 +9,7 @@ import lombok.NoArgsConstructor;
|
|
|
|
@AllArgsConstructor
|
|
|
|
@AllArgsConstructor
|
|
|
|
@NoArgsConstructor
|
|
|
|
@NoArgsConstructor
|
|
|
|
@Data
|
|
|
|
@Data
|
|
|
|
@Inheritance ( strategy = InheritanceType.JOINED)
|
|
|
|
@Inheritance(strategy = InheritanceType.JOINED)
|
|
|
|
@Entity
|
|
|
|
@Entity
|
|
|
|
@Table(name="joueur")
|
|
|
|
@Table(name="joueur")
|
|
|
|
public class Joueur {
|
|
|
|
public class Joueur {
|
|
|
@ -20,7 +20,7 @@ public class Joueur {
|
|
|
|
@Column(unique = true)
|
|
|
|
@Column(unique = true)
|
|
|
|
private String pseudo;
|
|
|
|
private String pseudo;
|
|
|
|
|
|
|
|
|
|
|
|
@ManyToOne(cascade = CascadeType.ALL)
|
|
|
|
@ManyToOne
|
|
|
|
@JoinColumn(name = "idpartie")
|
|
|
|
@JoinColumn(name = "idpartie")
|
|
|
|
@JsonIgnore
|
|
|
|
@JsonIgnore
|
|
|
|
private Partie partie;
|
|
|
|
private Partie partie;
|
|
|
|