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.
cloudnote_server/src/main/java/com/bupt/note/Model/PaperNote.java

50 lines
974 B

package com.bupt.note.Model;
import javax.persistence.*;
@Entity
@Table(name = "sys_paper_note")
public class PaperNote {
private Long id;
private Long paperId;
private String txtContent;
private String userName;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Lob
@Column(nullable = false)
public String getTxtContent() {
return txtContent;
}
public void setTxtContent(String txtContent) {
this.txtContent = txtContent;
}
@Column(nullable = false)
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
@Column(nullable = false)
public Long getPaperId() {
return paperId;
}
public void setPaperId(Long paperId) {
this.paperId = paperId;
}
}