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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
public class ProduitBean {
private Long idProd;
private List<Produit> tout_les_prod;
private Long idSos;
private Long idCat;
private Produit produit;
private Categorie categorie;
private Societe societe;
private Image image;
public Image getImage() {
return image;
}
public void setImage(Image image) {
this.image = image;
}
@PostConstruct
public void init( ){
produit=new Produit();
tout_les_prod= new DaoProduit().findAll();
}
public void afficher() {
tout_les_prod=new DaoProduit().findByIdimage(idProd);
}
public Long getIdProd() {
return idProd;
}
public void setIdProd(Long idProd) {
this.idProd = idProd;
}
public List<Produit> getTout_les_prod() {
return tout_les_prod;
}
public void setTout_les_prod(List<Produit> tout_les_prod) {
this.tout_les_prod = tout_les_prod;
}
public Long getIdSos() {
return idSos;
}
public void setIdSos(Long idSos) {
this.idSos = idSos;
}
public Long getIdCat() {
return idCat;
}
public void setIdCat(Long idCat) {
this.idCat = idCat;
}
public Produit getProduit() {
return produit;
}
public void setProduit(Produit produit) {
this.produit = produit;
}
public Categorie getCategorie() {
return categorie;
}
public void setCategorie(Categorie categorie) {
this.categorie = categorie;
}
public Societe getSociete() {
return societe;
}
public void setSociete(Societe societe) {
this.societe = societe;
}
public ProduitBean(Long idProd, List<Produit> tout_les_prod, Long idSos,
Long idCat, Produit produit, Categorie categorie, Societe societe) {
super();
this.idProd = idProd;
this.tout_les_prod = tout_les_prod;
this.idSos = idSos;
this.idCat = idCat;
this.produit = produit;
this.categorie = categorie;
this.societe = societe;
}
public ProduitBean() {
super();
// TODO Auto-generated constructor stub
} |
Partager