Skip to content
Snippets Groups Projects

Add start and end date to editions (1)

Merged Ruben Backx requested to merge add-dates-to-editions into development
5 files
+ 24
0
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -17,6 +17,8 @@
*/
package nl.tudelft.submit.dto.create;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@@ -28,6 +30,8 @@ import nl.tudelft.labracore.api.dto.CohortIdDTO;
import nl.tudelft.labracore.api.dto.CourseIdDTO;
import nl.tudelft.labracore.api.dto.EditionCreateDTO;
import org.springframework.format.annotation.DateTimeFormat;
@Data
@Builder
@AllArgsConstructor
@@ -46,6 +50,14 @@ public class SubmitEditionCreateDTO {
@NotNull
private EditionCreateDTO.EnrollabilityEnum enrollability;
@NotNull
@DateTimeFormat(pattern = "dd-MM-yyyy HH:mm")
private LocalDateTime startDate;
@NotNull
@DateTimeFormat(pattern = "dd-MM-yyyy HH:mm")
private LocalDateTime endDate;
@Builder.Default
@NotNull
private Boolean importFromCohort = false;
Loading