The record class sounds like a great replacement for DTO classes but, because I am using validations, they might not be suitable for UserDTO.