CAmbiado tipo de datos para manejar Horas a LocalTime.
This commit is contained in:
@@ -2,6 +2,7 @@ package jpa;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Time;
|
||||
import java.time.LocalTime;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
@@ -29,7 +30,7 @@ public class VisitJPA implements Serializable {
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Integer id;
|
||||
private Date date;
|
||||
private Time time;
|
||||
private LocalTime time;
|
||||
private String observations;
|
||||
private String result;
|
||||
|
||||
@@ -48,7 +49,7 @@ public class VisitJPA implements Serializable {
|
||||
super();
|
||||
}
|
||||
|
||||
public VisitJPA(Integer id, Date date, Time time, String observations, String result, PatientJPA patient, FamilyDoctorJPA familydoctor) {
|
||||
public VisitJPA(Integer id, Date date, LocalTime time, String observations, String result, PatientJPA patient, FamilyDoctorJPA familydoctor) {
|
||||
this.id = id;
|
||||
this.date = date;
|
||||
this.time = time;
|
||||
@@ -74,11 +75,11 @@ public class VisitJPA implements Serializable {
|
||||
this.date = value;
|
||||
}
|
||||
|
||||
public Time getTime() {
|
||||
public LocalTime getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(Time value) {
|
||||
public void setTime(LocalTime value) {
|
||||
this.time = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user