parent
1c8b8605f9
commit
c7dc1447d5
@ -0,0 +1,17 @@
|
||||
package fr.iut.sciencequest.sae.dto.difficulte;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.*;
|
||||
import org.springframework.hateoas.RepresentationModel;
|
||||
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class DifficulteIdOnlyDTO extends RepresentationModel<DifficulteIdOnlyDTO> {
|
||||
@NotNull
|
||||
private Integer id;
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package fr.iut.sciencequest.sae.dto.scientifique;
|
||||
|
||||
import fr.iut.sciencequest.sae.dto.difficulte.DifficulteSimpleDTO;
|
||||
import fr.iut.sciencequest.sae.dto.thematique.ThematiqueSimpleDTO;
|
||||
import fr.iut.sciencequest.sae.entities.Sexe;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.*;
|
||||
import org.hibernate.validator.constraints.URL;
|
||||
import org.springframework.hateoas.RepresentationModel;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class ScientifiqueSimpleDTO extends RepresentationModel<ScientifiqueSimpleDTO> {
|
||||
@NotNull
|
||||
private Integer id;
|
||||
|
||||
@NotNull
|
||||
private DifficulteSimpleDTO difficulte;
|
||||
|
||||
@NotNull
|
||||
private ThematiqueSimpleDTO thematique;
|
||||
|
||||
@URL
|
||||
private String pathToPhoto;
|
||||
|
||||
@NotBlank
|
||||
private String nom;
|
||||
|
||||
@NotBlank
|
||||
private String prenom;
|
||||
|
||||
@NotBlank
|
||||
private String descriptif;
|
||||
|
||||
@NotEmpty
|
||||
private Date dateNaissance;
|
||||
|
||||
@NotBlank
|
||||
private Sexe sexe;
|
||||
|
||||
@Size(max=1)
|
||||
private BigDecimal ratioTrouve;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package fr.iut.sciencequest.sae.dto.thematique;
|
||||
|
||||
import fr.iut.sciencequest.sae.entities.Scientifique;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.*;
|
||||
import org.springframework.hateoas.RepresentationModel;
|
||||
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class ThematiqueIdOnlyDTO extends RepresentationModel<ThematiqueIdOnlyDTO> {
|
||||
@NotNull
|
||||
private Integer id;
|
||||
}
|
Loading…
Reference in new issue