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
| public class Consultation implements java.io.Serializable {
private Integer id;
private Prescription prescription;
private Patient patient;
private String commentaire;
private Date date;
private Date heureDebut;
private Integer idsymptome;
private Set<SymptomeConsultation> symptomeConsultations = new HashSet<SymptomeConsultation>(
0);
private DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
public String getStringDate()
{
return this.dateFormat.format(this.date);
}
public void setStringDate(String stringDate)
{
try {
this.date = this.dateFormat.parse(stringDate);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public Consultation() {
}
public Consultation(Prescription prescription, Patient patient,
String commentaire, Date date, Date heureDebut, Integer idsymptome,
Set<SymptomeConsultation> symptomeConsultations) {
this.prescription = prescription;
this.patient = patient;
this.commentaire = commentaire;
this.date = date;
this.heureDebut = heureDebut;
this.idsymptome = idsymptome;
this.symptomeConsultations = symptomeConsultations;
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Prescription getPrescription() {
return this.prescription;
}
public void setPrescription(Prescription prescription) {
this.prescription = prescription;
}
public Patient getPatient() {
return this.patient;
}
public void setPatient(Patient patient) {
this.patient = patient;
}
public String getCommentaire() {
return this.commentaire;
}
public void setCommentaire(String commentaire) {
this.commentaire = commentaire;
}
public Date getDate() {
return this.date;
}
public void setDate(Date date) {
this.date = date;
}
public Date getHeureDebut() {
return this.heureDebut;
}
public void setHeureDebut(Date heureDebut) {
this.heureDebut = heureDebut;
}
public Integer getIdsymptome() {
return this.idsymptome;
}
public void setIdsymptome(Integer idsymptome) {
this.idsymptome = idsymptome;
}
public Set<SymptomeConsultation> getSymptomeConsultations() {
return this.symptomeConsultations;
}
public void setSymptomeConsultations(
Set<SymptomeConsultation> symptomeConsultations) {
this.symptomeConsultations = symptomeConsultations;
}
} |
Partager