76 lines
1.5 KiB
Java
76 lines
1.5 KiB
Java
package TO;
|
|
|
|
import java.io.Serializable;
|
|
import java.sql.Time;
|
|
import java.util.Date;
|
|
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
/**
|
|
* Transfer object (TO) MedicalSpecialtyTO Para el intercambio de datos entre la
|
|
* capa de interfaz y la capa de negocio
|
|
*
|
|
* Además esta clase facilita la implementación futura de una Capa SOA (Se
|
|
* define la anotación para la serialización de esta clase: @XmlRootElement(name
|
|
* = "medicalspeciality")
|
|
*
|
|
* @author mark
|
|
*
|
|
*/
|
|
@XmlRootElement(name = "Visit")
|
|
public class VisitTO implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private Integer id;
|
|
private Date date;
|
|
private Time time;
|
|
private String observations;
|
|
private String result;
|
|
private FamilyDoctorTO familyDoctor;
|
|
private PatientTO patient;
|
|
|
|
public VisitTO() {
|
|
super();
|
|
}
|
|
public VisitTO(Integer id, Date date, Time time, String observation, String result) {
|
|
this.setId(id);
|
|
this.date=date;
|
|
//this.time
|
|
}
|
|
public Integer getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id=id;
|
|
}
|
|
|
|
public Date getDate() {
|
|
return this.date;
|
|
}
|
|
|
|
public void setDate(Date date) {
|
|
this.date=date;
|
|
}
|
|
|
|
public Time getTime() {
|
|
return this.time;
|
|
}
|
|
|
|
public void setTime(Time time) {
|
|
this.time=time;
|
|
}
|
|
|
|
public String getObservations() {
|
|
return this.observations;
|
|
}
|
|
|
|
public void setObservations(String observations) {
|
|
this.observations=observations;
|
|
}
|
|
|
|
|
|
}
|