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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
@Entity
@Table(name="carrelagesPub")
public class CarrelagesPub {
@Id
@Column(name="codeArticle")
private String codeArticle;
@Column(name="designation", nullable=false)
private String designation;
@Column(name="prixUnitaire", nullable=false)
private double prixUnitaire;
@Column(name="prixEchantillon", nullable=false)
private double prixEchantillon;
@Column(name="dimension", nullable=false)
private String dimension;
@Column(name="piece1", nullable=false)
private String piece1;
@Column(name="piece2")
private String piece2;
@Column(name="piece3")
private String piece3;
@Column(name="type1", nullable=false)
private String type1;
@Column(name="type2")
private String type2;
@Column(name="image", nullable=false)
private String image;
@OneToMany(
mappedBy = "carrelage",
targetEntity = Liaison.class
)
private List<Liaison> demandeEchantillon;
public String getCodeArticle() {
return codeArticle;
}
public void setCodeArticle(String codeArticle) {
this.codeArticle = codeArticle;
}
public String getDesignation() {
return designation;
}
public void setDesignation(String designation) {
this.designation = designation;
}
public double getPrixUnitaire() {
return prixUnitaire;
}
public void setPrixUnitaire(double prixUnitaire) {
this.prixUnitaire = prixUnitaire;
}
public double getPrixEchantillon() {
return prixEchantillon;
}
public void setPrixEchantillon(double prixEchantillon) {
this.prixEchantillon = prixEchantillon;
}
public String getPiece1() {
return this.piece1;
}
public void setPiece1(String type) {
this.piece1 = type;
}
public String getPiece2() {
return piece2;
}
public void setPiece2(String piece2) {
this.piece2 = piece2;
}
public String getPiece3() {
return piece3;
}
public void setPiece3(String piece3) {
this.piece3 = piece3;
}
public String getType1() {
return type1;
}
public void setType1(String type1) {
this.type1 = type1;
}
public String getType2() {
return type2;
}
public void setType2(String type2) {
this.type2 = type2;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public List<Liaison> getDemandeEchantillon() {
return demandeEchantillon;
}
public void setDemandeEchantillon(List<Liaison> demEchantillon) {
this.demandeEchantillon = demEchantillon;
}
public String getDimension() {
return dimension;
}
public void setDimension(String dimension) {
this.dimension = dimension;
}
public CarrelagesPub(String codeArticle, String designation,
double prixUnitaire, double prixEchantillon, String dimension,
String piece1, String piece2, String piece3, String type1,
String type2, String image,
List<Liaison> demandeEchantillon) {
super();
this.codeArticle = codeArticle;
this.designation = designation;
this.prixUnitaire = prixUnitaire;
this.prixEchantillon = prixEchantillon;
this.dimension = dimension;
this.piece1 = piece1;
this.piece2 = piece2;
this.piece3 = piece3;
this.type1 = type1;
this.type2 = type2;
this.image = image;
this.demandeEchantillon = demandeEchantillon;
}
public CarrelagesPub(){
}
} |
Partager