Files
myhealth/1.sources/MyHealth/src/TO/VisitTO.java
Alejandro Linares Amado 80296c682c Implementación VisitTO
2019-12-04 04:39:33 +01:00

72 lines
1.4 KiB
Java

package TO;
import java.io.Serializable;
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;
public VisitTO() {
super();
}
public VisitTO(Integer id, Date date, Time time, String observation, String result) {
this.setId(id);
this date=date;
this time
1}
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 obs) {
this.observations=obs;
}
}