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 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
@Entity
@Table(name="Collab")
public class Collab implements Serializable {
private static final long serialVersionUID = 1L;
private String ccollab = "";
private String nom = "";
private String prenom = "";
private String etatciv = "";
private String teleph = "";
private String local = "";
private String espcom = "";
private String initof = "";
private String titre = "";
private String profilmon = "";
private String cbadacc = "";
private Service serv = null;
private Societe soc = null;
public Collab(String ccollab, String nom, String prenom, String etatciv, String teleph, String local, String espcom, String initof, String titre, String profilmon, String cbadacc, Service serv, Societe soc) {
this.ccollab = ccollab;
this.nom = nom;
this.prenom = prenom;
this.etatciv = etatciv;
this.teleph = teleph;
this.local = local;
this.espcom = espcom;
this.initof = initof;
this.titre = titre;
this.profilmon = profilmon;
this.cbadacc = cbadacc;
this.serv = serv;
this.soc = soc;
}
public Collab() {
}
/** METHODE getCcollab() : Retourne le code collab */
@Id
@Column(name="CCOLLAB", unique = true, nullable = false)
public String getCcollab() {
return ccollab;
}
/** METHODE setCcollab() : Affecte le code collab */
public void setCcollab(String ccollab) {
this.ccollab = ccollab;
}
@Column(name="NOM")
public String getNom() {
return nom;
}
/** METHODE setNom() : Affecte le nom*/
public void setNom(String nom) {
this.nom = nom;
}
@Column(name="PRENOM")
/** METHODE getPrenom() : Retourne le prenom */
public String getPrenom() {
return prenom;
}
/** METHODE setPrenom() : Affecte le prenom */
public void setPrenom(String prenom) {
this.prenom = prenom;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="CSERV", nullable=false)
/** METHODE getServ() : Retourne le service associé au collaborateur */
public Service getServ() {
return serv;
}
/** METHODE setServ() : Affecte le service associé au collaborateur */
public void setServ(Service serv) {
this.serv = serv;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="CSOC", nullable=false)
/** METHODE getSoc() : Retourne la societe associée au collaborateur */
public Societe getSoc() {
return soc;
}
/** METHODE setSoc() : Affecte la societe associée au collaborateur */
public void setSoc(Societe soc) {
this.soc = soc;
}
/** METHODE setEtatciv() : Retourne l'état civil */
public void setEtatciv(String etatciv) {
this.etatciv = etatciv;
}
@Column(name="ETACIV")
/** METHODE getEtatciv() : Affecte l'état civil */
public String getEtatciv() {
return etatciv;
}
/** METHODE setTeleph() : Retourne le téléphone */
public void setTeleph(String teleph) {
this.teleph = teleph;
}
@Column(name="TELEPH")
/** METHODE getTeleph() : Affecte le téléphone */
public String getTeleph() {
return teleph;
}
/** METHODE setLocal() : Retourne la localisation */
public void setLocal(String local) {
this.local = local;
}
@Column(name="LOCAL")
/** METHODE getLocal() : Affecte la localisation */
public String getLocal() {
return local;
}
/** METHODE setEspcom() : Retourne l'espace communication */
public void setEspcom(String espcom) {
this.espcom = espcom;
}
@Column(name="ESPCOM")
/** METHODE getEspcom() : Affecte l'espace communication */
public String getEspcom() {
return espcom;
}
/** METHODE setInitof() : Retourne les initiales officielles */
public void setInitof(String initof) {
this.initof = initof;
}
@Column(name="INITOF")
/** METHODE getInitof() : Affecte les initiales officielles */
public String getInitof() {
return initof;
}
/** METHODE setTitre() : Retourne le titre */
public void setTitre(String titre) {
this.titre = titre;
}
@Column(name="TITRE")
/** METHODE getTitre() : Affecte le titre */
public String getTitre() {
return titre;
}
/** METHODE setProfilmon() : Retourne le profil */
public void setProfilmon(String profilmon) {
this.profilmon = profilmon;
}
@Column(name="PROFILMON")
/** METHODE getProfilmon() : Affecte le profil */
public String getProfilmon() {
return profilmon;
}
/** METHODE setCbadacc() : Retourne le code badge */
public void setCbadacc(String cbadacc) {
this.cbadacc = cbadacc;
}
@Column(name="CBADACC")
/** METHODE getCbadacc() : Affecte le code badge */
public String getCbadacc() {
return cbadacc;
}
} |
Partager