[R7] DTO to update allowed data in Patient Entity

This commit is contained in:
Mirna Gama 2024-01-10 14:39:52 -03:00 committed by Mirna Gama
parent b529f43f06
commit 08313c9db0

View File

@ -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) {
}