MCPcopy Create free account
hub / github.com/diyhi/bbs / Comment

Class Comment

src/main/java/cms/model/topic/Comment.java:26–120  ·  view source on GitHub ↗

评论

Source from the content-addressed store, hash-verified

24 *
25 */
26@Getter
27@Setter
28@Entity
29@Table(name="comment",indexes = {@Index(name="comment_1_idx", columnList="topicId,status"),@Index(name="comment_2_idx", columnList="quoteIdGroup"),@Index(name="comment_3_idx", columnList="userName,isStaff")})
30public class Comment implements Serializable{
31 @Serial
32 private static final long serialVersionUID = -7576354708273189356L;
33
34 /** Id **/
35 @Id @GeneratedValue(strategy = GenerationType.IDENTITY)
36 private Long id;
37 /** 是否是员工 true:员工 false:会员 **/
38 private Boolean isStaff = false;
39 /** 用户名称 **/
40 @Column(length=30)
41 private String userName;
42 /** 账号 **/
43 @Transient
44 private String account;
45 /** 呢称 **/
46 @Transient
47 private String nickname;
48 /** 头像路径 **/
49 @Transient
50 private String avatarPath;
51 /** 头像名称 **/
52 @Transient
53 private String avatarName;
54 /** 用户信息状态 -30.账号已注销(不显示数据) -20.账号已逻辑删除(不显示数据) -10.账号已禁用(不显示数据) 0.正常 10.账号已禁用(显示数据) 20.账号已逻辑删除(显示数据) **/
55 @Transient
56 private Integer userInfoStatus = 0;
57 /** IP **/
58 @Column(length=45)
59 private String ip;
60 /** IP归属地 **/
61 @Transient
62 private String ipAddress;
63 /** 话题Id **/
64 private Long topicId;
65 /** 话题标题 **/
66 @Transient
67 private String topicTitle;
68 /** 状态 10.待审核 20.已发布 110.待审核用户删除 120.已发布用户删除 100010.待审核员工删除 100020.已发布员工删除 **/
69 private Integer status = 10;
70
71 /** 引用json数据 **/
72 @Lob
73 private String quote;
74 /** 自定义引用集合 **/
75 @Transient
76 private List<Quote> quoteList = new ArrayList<Quote>();
77 /** 引用Id组 倒序存放**/
78 private String quoteIdGroup = ",";
79 /** 引用修改Id (修改评论内容时,评论列表其它引用此评论的引用内容也显示更新后的内容) **/
80 private String quoteUpdateId = ",";
81
82 /** 评论内容 **/
83 @Lob

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…