|
@@ -0,0 +1,215 @@
|
|
|
|
|
+package com.uas.platform.b2b.model;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+
|
|
|
|
|
+import javax.persistence.Cacheable;
|
|
|
|
|
+import javax.persistence.CascadeType;
|
|
|
|
|
+import javax.persistence.Column;
|
|
|
|
|
+import javax.persistence.Entity;
|
|
|
|
|
+import javax.persistence.GeneratedValue;
|
|
|
|
|
+import javax.persistence.GenerationType;
|
|
|
|
|
+import javax.persistence.Id;
|
|
|
|
|
+import javax.persistence.JoinColumn;
|
|
|
|
|
+import javax.persistence.OneToOne;
|
|
|
|
|
+import javax.persistence.SequenceGenerator;
|
|
|
|
|
+import javax.persistence.Table;
|
|
|
|
|
+
|
|
|
|
|
+import org.hibernate.annotations.Cache;
|
|
|
|
|
+import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 问题实体类
|
|
|
|
|
+ * @author luoq
|
|
|
|
|
+ *
|
|
|
|
|
+ */
|
|
|
|
|
+@Entity
|
|
|
|
|
+@Table(name = "service$questions")
|
|
|
|
|
+@Cacheable
|
|
|
|
|
+@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "com.uas.platform.b2b.model.Question")
|
|
|
|
|
+public class Question {
|
|
|
|
|
+
|
|
|
|
|
+ @Id
|
|
|
|
|
+ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "service$question_gen")
|
|
|
|
|
+ @SequenceGenerator(name = "service$question_gen", sequenceName = "service$question_seq", allocationSize = 1)
|
|
|
|
|
+ @Column(name = "que_id")
|
|
|
|
|
+ private Long id;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题类别
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_class")
|
|
|
|
|
+ private Long classId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题标题
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_title")
|
|
|
|
|
+ private String title;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题解决方案
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_solution")
|
|
|
|
|
+ private String solution;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题热度
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_hot")
|
|
|
|
|
+ private Long hot;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题反馈者
|
|
|
|
|
+ */
|
|
|
|
|
+ @OneToOne(cascade = { CascadeType.REFRESH })
|
|
|
|
|
+ @JoinColumn(name = "que_createUser", insertable = false, updatable = false)
|
|
|
|
|
+ private UserBaseInfo createUser;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题反馈者UU
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_createUser")
|
|
|
|
|
+ private Long createUserUU;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题反馈时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_createTime")
|
|
|
|
|
+ private Date createTime;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题回复者
|
|
|
|
|
+ */
|
|
|
|
|
+ @OneToOne(cascade = { CascadeType.REFRESH })
|
|
|
|
|
+ @JoinColumn(name = "que_replyUser", insertable = false, updatable = false)
|
|
|
|
|
+ private UserBaseInfo replyUser;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 问题回复者UU
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_replyUser")
|
|
|
|
|
+ private Long replyUserUU;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 回复时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "que_replyTime")
|
|
|
|
|
+ private Date replyTime;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 是否公开
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "isPublic")
|
|
|
|
|
+ private Long isPublic;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 是否已解答
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "isResolved")
|
|
|
|
|
+ private Long isResolved;
|
|
|
|
|
+
|
|
|
|
|
+ public Long getId() {
|
|
|
|
|
+ return id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setId(Long id) {
|
|
|
|
|
+ this.id = id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getClassId() {
|
|
|
|
|
+ return classId;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setClassId(Long classId) {
|
|
|
|
|
+ this.classId = classId;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public String getTitle() {
|
|
|
|
|
+ return title;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setTitle(String title) {
|
|
|
|
|
+ this.title = title;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public String getSolution() {
|
|
|
|
|
+ return solution;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setSolution(String solution) {
|
|
|
|
|
+ this.solution = solution;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getHot() {
|
|
|
|
|
+ return hot;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setHot(Long hot) {
|
|
|
|
|
+ this.hot = hot;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public UserBaseInfo getCreateUser() {
|
|
|
|
|
+ return createUser;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setCreateUser(UserBaseInfo createUser) {
|
|
|
|
|
+ this.createUser = createUser;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getCreateUserUU() {
|
|
|
|
|
+ return createUserUU;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setCreateUserUU(Long createUserUU) {
|
|
|
|
|
+ this.createUserUU = createUserUU;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Date getCreateTime() {
|
|
|
|
|
+ return createTime;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setCreateTime(Date createTime) {
|
|
|
|
|
+ this.createTime = createTime;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public UserBaseInfo getReplyUser() {
|
|
|
|
|
+ return replyUser;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setReplyUser(UserBaseInfo replyUser) {
|
|
|
|
|
+ this.replyUser = replyUser;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getReplyUserUU() {
|
|
|
|
|
+ return replyUserUU;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setReplyUserUU(Long replyUserUU) {
|
|
|
|
|
+ this.replyUserUU = replyUserUU;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Date getReplyTime() {
|
|
|
|
|
+ return replyTime;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setReplyTime(Date replyTime) {
|
|
|
|
|
+ this.replyTime = replyTime;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getIsPublic() {
|
|
|
|
|
+ return isPublic;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setIsPublic(Long isPublic) {
|
|
|
|
|
+ this.isPublic = isPublic;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getIsResolved() {
|
|
|
|
|
+ return isResolved;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setIsResolved(Long isResolved) {
|
|
|
|
|
+ this.isResolved = isResolved;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|