Implementación Componente Visit

This commit is contained in:
Alejandro Linares Amado
2019-12-05 02:54:06 +01:00
parent 7ce3cb57d6
commit 86f8f036e6
3 changed files with 42 additions and 1 deletions

17
.project Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>myhealth3</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.jboss.ide.eclipse.archives.core.archivesBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.jboss.ide.eclipse.archives.core.archivesNature</nature>
</natures>
</projectDescription>

View File

@@ -26,6 +26,8 @@ public class VisitTO implements Serializable {
private Time time;
private String observations;
private String result;
private FamilyDoctorTO familyDoctor;
private PatientTO patient;
public VisitTO() {
super();

View File

@@ -9,6 +9,12 @@ import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@ManyToOne
@JoinColumn (name="FamilyDoctorId")
private FamilyDoctorJPA familyDoctor;
@ManyToOne
@JoinColumn (name="PatientId")
private PatientJPA patient;
/**
*
@@ -77,5 +83,21 @@ public class VisitJPA implements Serializable {
public void setObservations(String observation) {
this.observations = observations;
}
/**
* 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;
}
}