CAmbiado tipo de datos para manejar Horas a LocalTime.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-27 16:56:53 +01:00
parent 2b89caf1ba
commit 974b524006
8 changed files with 58 additions and 53 deletions

View File

@@ -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;
}