[R1] Add missing field for speciality and refactor the address one

This commit is contained in:
Mirna Gama 2024-01-04 10:15:20 -03:00 committed by Mirna Gama
parent 8d7402cab5
commit 3e30913233

View File

@ -21,7 +21,8 @@ public class Doctor {
this.email=doctorDTO.email(); this.email=doctorDTO.email();
this.crm=doctorDTO.email(); this.crm=doctorDTO.email();
this.telephone=doctorDTO.telephone(); this.telephone=doctorDTO.telephone();
this.address = new Address(doctorDTO.addressDTO()); this.speciality=doctorDTO.speciality();
this.address = new Address(doctorDTO.address());
} }
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Id @GeneratedValue(strategy = GenerationType.IDENTITY)