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.

46 lines
991 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package cn.lblbc.notepad.db;
import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;
/**
* 厦门大学计算机专业 | 前华为工程师
* 专注《零基础学编程系列》 http://lblbc.cn/blog
* 包含Java | 安卓 | 前端 | Flutter | iOS | 小程序 | 鸿蒙
* 公众号:蓝不蓝编程
*/
@Entity(tableName = "Note")
public class Note extends OrmObject {
@PrimaryKey(autoGenerate = true)
private long id;
private String content;
public Note() {
}
public Note(String content) {
this.content = content;
}
public Note(long id, String content) {
this.id = id;
this.content = content;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}