|
|
|
@ -3,10 +3,13 @@ package ru.ulstu.conference.model;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
import org.hibernate.validator.constraints.NotEmpty;
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
import ru.ulstu.deadline.model.Deadline;
|
|
|
|
|
import ru.ulstu.paper.model.PaperDto;
|
|
|
|
|
import ru.ulstu.user.model.UserDto;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Temporal;
|
|
|
|
|
import javax.persistence.TemporalType;
|
|
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Date;
|
|
|
|
@ -26,7 +29,11 @@ public class ConferenceDto {
|
|
|
|
|
@Size(max = 255)
|
|
|
|
|
private String url;
|
|
|
|
|
private int ping;
|
|
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
|
|
|
private Date beginDate;
|
|
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
|
|
|
private Date endDate;
|
|
|
|
|
@NotEmpty
|
|
|
|
|
private List<Deadline> deadlines = new ArrayList<>();
|
|
|
|
|