Ajout ReponseSimpleDTO

Springboot
Alix JEUDI--LEMOINE 1 year ago
parent 3b97f4b2ba
commit 431288aac7

@ -0,0 +1,22 @@
package fr.iut.sciencequest.sae.dto.reponse;
import com.fasterxml.jackson.annotation.JsonInclude;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import org.springframework.hateoas.RepresentationModel;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ReponseSimpleDTO extends RepresentationModel<ReponseSimpleDTO> {
@NotNull
private Integer id;
@NotNull
@NotBlank
private String reponse;
}
Loading…
Cancel
Save