CAmbiado tipo de datos para manejar Horas a LocalTime.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package TO;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Time;
|
||||
import java.time.LocalTime;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
@@ -20,7 +20,7 @@ public class VisitTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Integer id;
|
||||
private Date date;
|
||||
private Time time;
|
||||
private LocalTime time;
|
||||
private String observations;
|
||||
private String result;
|
||||
private FamilyDoctorTO familyDoctor;
|
||||
@@ -30,7 +30,7 @@ public class VisitTO implements Serializable {
|
||||
super();
|
||||
}
|
||||
|
||||
public VisitTO(Integer Id, Date date, Time time, String observations, String result, FamilyDoctorTO fd, PatientTO pat) {
|
||||
public VisitTO(Integer Id, Date date, LocalTime time, String observations, String result, FamilyDoctorTO fd, PatientTO pat) {
|
||||
this.id = Id;
|
||||
this.date = date;
|
||||
this.time = time;
|
||||
@@ -56,11 +56,11 @@ public class VisitTO implements Serializable {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
public Time getTime() {
|
||||
public LocalTime getTime() {
|
||||
return this.time;
|
||||
}
|
||||
|
||||
public void setTime(Time time) {
|
||||
public void setTime(LocalTime time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user