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.
72 lines
1.3 KiB
72 lines
1.3 KiB
package com.bupt.note.Model;
|
|
|
|
import javax.persistence.*;
|
|
|
|
/**
|
|
* 评价实体
|
|
*/
|
|
@Entity
|
|
@Table(name = "sys_paper_rating")
|
|
public class Rating {
|
|
private Long id;
|
|
private Integer score1;
|
|
private Integer score2;
|
|
private Integer score3;
|
|
private Long paperId;
|
|
private String userName;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
@Column(nullable = false)
|
|
public Integer getScore1() {
|
|
return score1;
|
|
}
|
|
|
|
public void setScore1(Integer score1) {
|
|
this.score1 = score1;
|
|
}
|
|
|
|
@Column(nullable = false)
|
|
public Integer getScore2() {
|
|
return score2;
|
|
}
|
|
|
|
public void setScore2(Integer score2) {
|
|
this.score2 = score2;
|
|
}
|
|
|
|
@Column(nullable = false)
|
|
public Integer getScore3() {
|
|
return score3;
|
|
}
|
|
|
|
public void setScore3(Integer score3) {
|
|
this.score3 = score3;
|
|
}
|
|
|
|
@Column(nullable = false)
|
|
public Long getPaperId() {
|
|
return paperId;
|
|
}
|
|
|
|
public void setPaperId(Long paperId) {
|
|
this.paperId = paperId;
|
|
}
|
|
|
|
@Column(nullable = false)
|
|
public String getUserName() {
|
|
return userName;
|
|
}
|
|
|
|
public void setUserName(String userName) {
|
|
this.userName = userName;
|
|
}
|
|
}
|
|
|