You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
2.9 KiB

package com.bupt.note.Model;
import javax.persistence.*;
/**
* 论文实体
*/
@Entity
@Table(name = "sys_paper")
public class Paper {
private Long id;
private String title;
private String type;
private String author;
private String profession;
private String school;
private Integer year;
private String summary;
private String tag;
private Long fileId;
private String userName;
private Long createTime;
private boolean hasCollect;
private Long collectTime;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Column(nullable = false)
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Column(nullable = false)
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Column(nullable = false)
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
@Column(nullable = false)
public String getProfession() {
return profession;
}
public void setProfession(String profession) {
this.profession = profession;
}
@Column(nullable = false)
public String getSchool() {
return school;
}
public void setSchool(String school) {
this.school = school;
}
@Column(nullable = false)
public Integer getYear() {
return year;
}
public void setYear(Integer year) {
this.year = year;
}
@Column(nullable = false)
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
@Column(nullable = false)
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
@Column(nullable = false)
public Long getFileId() {
return fileId;
}
public void setFileId(Long fileId) {
this.fileId = fileId;
}
@Column(nullable = false)
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
@Column(nullable = false)
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
@Transient
public boolean isHasCollect() {
return hasCollect;
}
public void setHasCollect(boolean hasCollect) {
this.hasCollect = hasCollect;
}
@Transient
public Long getCollectTime() {
return collectTime;
}
public void setCollectTime(Long collectTime) {
this.collectTime = collectTime;
}
}