Cambiar nombre a TestType por MedicalTestType para ser más explicito

y refactorización de todos sus usos.
This commit is contained in:
Roberto Orden Erena
2019-12-26 12:26:02 +01:00
parent 066ddeba51
commit 2726d2564a
6 changed files with 12 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import common.TestType;
import common.MedicalTestType;
/**
* Los nombres de los decortadores relacionados con la BBDD pueden estar en
@@ -42,7 +42,7 @@ public class MedicalTestJPA implements Serializable {
@Enumerated(EnumType.STRING)
@Column(name = "type") // Con esto podríamos cambiar los nombres de las propiedades de la clase y
// mantener la relación con la BBDD a través de JPA
private TestType type;
private MedicalTestType type;
@ManyToOne
@JoinColumn(name = "patientid")
@@ -56,7 +56,7 @@ public class MedicalTestJPA implements Serializable {
super();
}
public MedicalTestJPA(int id, Date date, long time, String observations, String highresimage, TestType type, PatientJPA patient, SpecialistDoctorJPA specialistDoctor) {
public MedicalTestJPA(int id, Date date, long time, String observations, String highresimage, MedicalTestType type, PatientJPA patient, SpecialistDoctorJPA specialistDoctor) {
this.id = id;
this.date = date;
this.time = time;
@@ -107,11 +107,11 @@ public class MedicalTestJPA implements Serializable {
this.highresimage = highresimage;
}
public TestType getType() {
public MedicalTestType getType() {
return type;
}
public void setType(TestType type) {
public void setType(MedicalTestType type) {
this.type = type;
}