If I have the following dto in spring boot
public class PersonDto { @JsonProperty(access = Access.READ_ONLY) private Long id; @NotBlank private String name;