1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
@Entity
@ManagedBean
public class EspaceTravail implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue( strategy = GenerationType.IDENTITY )
private Long pkIdet;
@NotNull(message="Veuillez remplir le nom")
@Size(min=3,message="Le nom doit contenir au moins 3 caractères!")
private String nom;
private String type;
private String description;
private String statut;
@ManyToOne
@JoinColumn(name="pkIduser")
private Utilisateur utilisateur;
public Utilisateur getUtilisateur() {
return utilisateur;
}
public void setUtilisateur(Utilisateur utilisateur) {
this.utilisateur = utilisateur;
}
public String getStatut() {
return statut;
}
public void setStatut(String statut) {
this.statut = statut;
}
public Long getPkIdet() {
return pkIdet;
}
public void setPkIdet(Long pkIdet) {
this.pkIdet = pkIdet;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
} |
Partager