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