📄 note.java
字号:
package com.hibernatebook.tools;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Note {
private String note;
private Integer id;
protected Note() {
}
Note(String note) {
this.note = note;
}
@Id
@GeneratedValue
public Integer getId() {
return id;
}
public String getNote() {
return note;
}
protected void setId(Integer id) {
this.id = id;
}
protected void setNote(String note) {
this.note = note;
}
public String toString() {
return "Note: " + this.note;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -