Esqueleto para consultar las visitas de un día.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-23 12:02:11 +01:00
parent 94fde1e93b
commit 9bc06ccedd
9 changed files with 175 additions and 66 deletions

View File

@@ -32,9 +32,11 @@ public class VisitJPA implements Serializable {
private Time time;
private String observations;
private String result;
@ManyToOne
@JoinColumn(name = "FamilyDoctorId")
private FamilyDoctorJPA familyDoctor;
@ManyToOne
@JoinColumn(name = "PatientId")
private PatientJPA patient;
@@ -46,16 +48,16 @@ public class VisitJPA implements Serializable {
super();
}
public VisitJPA(Integer id, Date date, Time time, String observations, String result) {
public VisitJPA(Integer id, Date date, Time time, String observations, String result, PatientJPA patient, FamilyDoctorJPA familydoctor) {
this.id = id;
this.date = date;
this.time = time;
this.observations = observations;
this.result = result;
this.patient = patient;
this.familyDoctor = familydoctor;
}
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Integer getId() {
return id;
}
@@ -84,8 +86,8 @@ public class VisitJPA implements Serializable {
return observations;
}
public void setObservations(String observation) {
this.observations = observations;
public void setObservations(String value) {
this.observations = value;
}
/**
@@ -106,4 +108,12 @@ public class VisitJPA implements Serializable {
public void setPatient(PatientJPA pat) {
this.patient = pat;
}
public String getResult() {
return result;
}
public void setResult(String value) {
this.result = value;
}
}