Componente Visit JPA
This commit is contained in:
@@ -32,6 +32,13 @@ public class VisitJPA implements Serializable {
|
||||
private String time;
|
||||
private String observations;
|
||||
private String result;
|
||||
@ManyToOne
|
||||
@JoinColumn (name="FamilyDoctorId")
|
||||
private FamilyDoctorJPA familyDoctor;
|
||||
@ManyToOne
|
||||
@JoinColumn (name="PatientId")
|
||||
private PatientJPA patient;
|
||||
|
||||
|
||||
/**
|
||||
* Class constructor methods
|
||||
@@ -97,13 +104,20 @@ public class VisitJPA implements Serializable {
|
||||
public void setPatients(Collection<PatientJPA> patients) {
|
||||
this.patients = patients;
|
||||
}
|
||||
/**
|
||||
* Methods get/set persistent relationships
|
||||
*/
|
||||
public FamilyDoctorJPA getFamilyDoctor() {
|
||||
return familyDoctor;
|
||||
}
|
||||
public void setFamilyDoctor(FamilyDoctorJPA familyDoc) {
|
||||
this.familyDoctor = familyDoc;
|
||||
}
|
||||
public PatientJPA getPatient() {
|
||||
return patient;
|
||||
}
|
||||
public void setPatient(PatientJPA pat) {
|
||||
this.patient=pat;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn (name="PrimaryHealthCareCenterId")
|
||||
public PrimaryHealthCareCenterJPA getPrimaryHealthCareCenter() {
|
||||
return primaryHealthCareCenter;
|
||||
}
|
||||
public void setPrimaryHealthCareCenter(PrimaryHealthCareCenterJPA center) {
|
||||
this.primaryHealthCareCenter = center;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user