package com.qxueyou.scc.operation.comment.mode;
|
|
import java.io.Serializable;
|
import java.math.BigInteger;
|
import java.util.Date;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.Id;
|
import javax.persistence.NamedQuery;
|
import javax.persistence.Table;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
/**
|
* 给我点赞视图
|
*
|
* @author lihanqi
|
*
|
*/
|
@Entity
|
@Table(name="SNS_PRAISE_TO_ME")
|
@NamedQuery(name="SnsPraiseToMe.findAll", query="SELECT e FROM SnsPraiseToMe e")
|
public class SnsPraiseToMe implements Serializable{
|
|
private static final long serialVersionUID = 1L;
|
|
/** 类型 1讨论,2评论*/
|
private int type;
|
|
/** 用户名称*/
|
private String name;
|
|
/** 用户Id*/
|
@Column(name="USER_ID", length=32)
|
private String userId;
|
|
/** 用户头像*/
|
@Column(name="IMG_PATH", length=32)
|
private String imgPath;
|
|
/** 创建者ID */
|
@Column(name="CREATE_ID", nullable=false, length=32)
|
@JsonIgnore
|
private String createId;
|
|
/** 创建人 */
|
@Column(name="CREATOR", nullable=false, length=100)
|
@JsonIgnore
|
private String creator;
|
|
@Column(name = "TOPIC_DESC", columnDefinition = "CLOB")
|
private String topicDesc;
|
|
@Column(name = "TOPIC_NAME")
|
private String topicName;
|
|
@Column(name = "TOPIC_ID", nullable = false, length = 32)
|
private String topicId;
|
|
/** 主键 */
|
@Column(name="COMMENT_ID", length=32)
|
private String commentId;
|
|
/** 主键 */
|
@Id
|
@Column(name="COMMENT_PRAISE_ID", length=32)
|
private String commentPraiseId;
|
|
/** 评论时间 */
|
@Column(name="PRAISE_TIME", nullable=false)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date praiseTime;
|
|
/** 评论内容 */
|
@Column(name="CONTENT")
|
private String content;
|
|
/** 评论个数 */
|
@Column(name="COMMENT_COUNT")
|
private BigInteger commentCount = BigInteger.ZERO;
|
|
/** 评论被赞数 */
|
@Column(name="COMMENT_PRAISE_COUNT")
|
private BigInteger commentPraiseCount = BigInteger.ZERO;
|
|
public int getType() {
|
return type;
|
}
|
|
public void setType(int type) {
|
this.type = type;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getUserId() {
|
return userId;
|
}
|
|
public void setUserId(String userId) {
|
this.userId = userId;
|
}
|
|
public String getImgPath() {
|
return imgPath;
|
}
|
|
public void setImgPath(String imgPath) {
|
this.imgPath = imgPath;
|
}
|
|
public String getCreateId() {
|
return createId;
|
}
|
|
public void setCreateId(String createId) {
|
this.createId = createId;
|
}
|
|
public String getCreator() {
|
return creator;
|
}
|
|
public void setCreator(String creator) {
|
this.creator = creator;
|
}
|
|
public String getTopicDesc() {
|
return topicDesc;
|
}
|
|
public void setTopicDesc(String topicDesc) {
|
this.topicDesc = topicDesc;
|
}
|
|
public String getTopicName() {
|
return topicName;
|
}
|
|
public void setTopicName(String topicName) {
|
this.topicName = topicName;
|
}
|
|
public String getTopicId() {
|
return topicId;
|
}
|
|
public void setTopicId(String topicId) {
|
this.topicId = topicId;
|
}
|
|
public String getCommentId() {
|
return commentId;
|
}
|
|
public void setCommentId(String commentId) {
|
this.commentId = commentId;
|
}
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public BigInteger getCommentCount() {
|
return commentCount;
|
}
|
|
public void setCommentCount(BigInteger commentCount) {
|
this.commentCount = commentCount;
|
}
|
|
public BigInteger getCommentPraiseCount() {
|
return commentPraiseCount;
|
}
|
|
public void setCommentPraiseCount(BigInteger commentPraiseCount) {
|
this.commentPraiseCount = commentPraiseCount;
|
}
|
}
|