package cn.com.liandisys.ycjt.ggcx.admin.model.cms;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.com.liandisys.ycjt.ggcx.admin.model.User;

@Entity
@Table(name = "T_APP_COMMENTS_COLLECTION")
public class Comment implements Serializable  {
	private static final long serialVersionUID = -1L;
	    
	   @Id
       @GeneratedValue(generator = "system-uuid")
       @GenericGenerator(name = "system-uuid", strategy = "uuid")
       @Column(name="id")
	    private String id;
	    
	    @ManyToOne(fetch = FetchType.EAGER, targetEntity = AppUser.class)
		@JoinColumn(name = "user_id")
	    private AppUser userId;
	    

	    @Column(name="article_id")
	    private String articleId;
	    
	    @Column(name="content")
	    private String content;
	    
	    @Column(name="isshow")
	    private String isshow;

	    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
		@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	    @Column(name="inserttime")
		private Date inserttime;
		

		

		public String getIsshow() {
			return isshow;
		}

		public void setIsshow(String isshow) {
			this.isshow = isshow;
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public AppUser getUserId() {
			return userId;
		}

		public void setUserId(AppUser userId) {
			this.userId = userId;
		}

		public String getArticleId() {
			return articleId;
		}

		public void setArticleId(String articleId) {
			this.articleId = articleId;
		}

		

		public String getContent() {
			return content;
		}

		public void setContent(String content) {
			this.content = content;
		}

		public Date getInserttime() {
			return inserttime;
		}

		public void setInserttime(Date inserttime) {
			this.inserttime = inserttime;
		}

		

		

		
		

	    
	    
	    

}
