[R3] DTO to update allowed data in Doctor Entity
This commit is contained in:
parent
aa674d64c3
commit
a571881aab
@ -0,0 +1,18 @@
|
|||||||
|
package com.mirna.hospitalmanagementapi.domain.dtos;
|
||||||
|
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data transfer object used to update allowed data in a Doctor entity
|
||||||
|
*
|
||||||
|
* @author Mirna Gama
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
public record DoctorUpdatedDataDTO(
|
||||||
|
@NotNull(message="id cannot be null")
|
||||||
|
Long id,
|
||||||
|
String name,
|
||||||
|
String telephone,
|
||||||
|
AddressDTO address) {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user