blob: 05801f0c3841a3f671f1d241ac5500d8c5b4ac9f [file] [log] [blame]
rootff0769a2025-05-18 17:24:41 +00001package entity;
rootcd436562025-05-08 14:09:19 +00002
root927f1532025-05-09 05:33:32 +00003import javax.persistence.Column;
4import javax.persistence.Entity;
5import javax.persistence.Id;
6import javax.persistence.Lob;
7import javax.persistence.Table;
TRM-coding8b42ebf2025-06-06 21:49:04 +08008import com.querydsl.core.annotations.QueryEntity;
9@QueryEntity
root927f1532025-05-09 05:33:32 +000010@Entity
11@Table(name = "Announcement")
rootcd436562025-05-08 14:09:19 +000012public class Notice {
root927f1532025-05-09 05:33:32 +000013 @Id
14 @Column(name = "announce_id", length = 64, nullable = false)
root4b6a76b2025-05-09 04:57:59 +000015 public String noticeid;
root927f1532025-05-09 05:33:32 +000016
17 @Lob
18 @Column(name = "content", nullable = false)
root4b6a76b2025-05-09 04:57:59 +000019 public String noticecontent;
root927f1532025-05-09 05:33:32 +000020
21 @Column(name = "is_public", nullable = false)
root4b6a76b2025-05-09 04:57:59 +000022 public boolean state;
root927f1532025-05-09 05:33:32 +000023
24 @Column(name = "tag", length = 100)
root4b6a76b2025-05-09 04:57:59 +000025 public String posttag;
rootff0769a2025-05-18 17:24:41 +000026
27 // 添加默认无参构造函数,JPA规范要求
28 public Notice() {
29 }
rootcd436562025-05-08 14:09:19 +000030}