#98 deadline imports edited
This commit is contained in:
parent
e967e2bfee
commit
8ffafd6693
@ -6,7 +6,11 @@ import org.springframework.format.annotation.DateTimeFormat;
|
||||
import ru.ulstu.core.model.BaseEntity;
|
||||
import ru.ulstu.user.model.User;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@ -20,7 +24,7 @@ public class Deadline extends BaseEntity {
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date date;
|
||||
|
||||
@OneToMany(targetEntity=User.class, fetch=FetchType.EAGER)
|
||||
@OneToMany(targetEntity=User.class, fetch= FetchType.EAGER)
|
||||
private List<User> executors;
|
||||
|
||||
private Boolean done;
|
||||
|
Loading…
Reference in New Issue
Block a user