Cambiado tipo de datos Date a LocalDate para componente visit.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-30 12:41:35 +01:00
parent e9f103123d
commit e07ed75132
14 changed files with 124 additions and 128 deletions

View File

@@ -1,9 +1,8 @@
package jpa;
import java.io.Serializable;
import java.sql.Time;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
@@ -29,7 +28,7 @@ public class VisitJPA implements Serializable {
@Column(updatable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private Date date;
private LocalDate date;
private LocalTime time;
private String observations;
private String result;
@@ -49,7 +48,7 @@ public class VisitJPA implements Serializable {
super();
}
public VisitJPA(Date date, LocalTime time, String observations, String result, PatientJPA patient, FamilyDoctorJPA familydoctor) {
public VisitJPA(LocalDate date, LocalTime time, String observations, String result, PatientJPA patient, FamilyDoctorJPA familydoctor) {
this.date = date;
this.time = time;
this.observations = observations;
@@ -66,11 +65,11 @@ public class VisitJPA implements Serializable {
this.id = value;
}
public Date getDate() {
public LocalDate getDate() {
return date;
}
public void setDate(Date value) {
public void setDate(LocalDate value) {
this.date = value;
}