Implementación Componente Visit
This commit is contained in:
17
.project
Normal file
17
.project
Normal 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>
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user