|
|
@ -3,10 +3,12 @@ package ru.ulstu.paper.model;
|
|
|
|
import org.hibernate.annotations.Fetch;
|
|
|
|
import org.hibernate.annotations.Fetch;
|
|
|
|
import org.hibernate.annotations.FetchMode;
|
|
|
|
import org.hibernate.annotations.FetchMode;
|
|
|
|
import org.hibernate.validator.constraints.NotBlank;
|
|
|
|
import org.hibernate.validator.constraints.NotBlank;
|
|
|
|
|
|
|
|
import ru.ulstu.conference.model.Conference;
|
|
|
|
import ru.ulstu.core.model.BaseEntity;
|
|
|
|
import ru.ulstu.core.model.BaseEntity;
|
|
|
|
import ru.ulstu.core.model.UserContainer;
|
|
|
|
import ru.ulstu.core.model.UserContainer;
|
|
|
|
import ru.ulstu.deadline.model.Deadline;
|
|
|
|
import ru.ulstu.deadline.model.Deadline;
|
|
|
|
import ru.ulstu.file.model.FileData;
|
|
|
|
import ru.ulstu.file.model.FileData;
|
|
|
|
|
|
|
|
import ru.ulstu.grant.model.Grant;
|
|
|
|
import ru.ulstu.timeline.model.Event;
|
|
|
|
import ru.ulstu.timeline.model.Event;
|
|
|
|
import ru.ulstu.user.model.User;
|
|
|
|
import ru.ulstu.user.model.User;
|
|
|
|
|
|
|
|
|
|
|
@ -114,6 +116,12 @@ public class Paper extends BaseEntity implements UserContainer {
|
|
|
|
@Column(name = "latex_text")
|
|
|
|
@Column(name = "latex_text")
|
|
|
|
private String latexText;
|
|
|
|
private String latexText;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ManyToMany(mappedBy = "papers")
|
|
|
|
|
|
|
|
private List<Conference> conferences;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ManyToMany(mappedBy = "papers")
|
|
|
|
|
|
|
|
private List<Grant> grants;
|
|
|
|
|
|
|
|
|
|
|
|
public PaperStatus getStatus() {
|
|
|
|
public PaperStatus getStatus() {
|
|
|
|
return status;
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -218,6 +226,22 @@ public class Paper extends BaseEntity implements UserContainer {
|
|
|
|
this.latexText = latexText;
|
|
|
|
this.latexText = latexText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<Conference> getConferences() {
|
|
|
|
|
|
|
|
return conferences;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setConferences(List<Conference> conferences) {
|
|
|
|
|
|
|
|
this.conferences = conferences;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<Grant> getGrants() {
|
|
|
|
|
|
|
|
return grants;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setGrants(List<Grant> grants) {
|
|
|
|
|
|
|
|
this.grants = grants;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Set<User> getUsers() {
|
|
|
|
public Set<User> getUsers() {
|
|
|
|
return getAuthors();
|
|
|
|
return getAuthors();
|
|
|
|