package org.ccpit.business.questionsManage;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.ccpit.base.user.User;
import org.hibernate.annotations.Where;
@Entity
@Where(clause = "deleted='false'")
@Table(name = "sfzx_Question")
public class Question {
		public long id;
		/**
		 * 标题
		 */
		public String title;
		/**
		 * 问题内容
		 */
		@Column(columnDefinition = "text")
		public String questionContent;
		/**
		 * 创建人
		 */
		public User creator;
		/**
		 * 创建时间
		 */
		public Date createTime;
		/**
		 * 修改人
		 */
		public User modifyBy;
		/**
		 * 修改时间
		 */
		public Date modifyTime;
		/**
		 * 逻辑删除
		 */
		public boolean deleted;
		/**
		 * 点击量
		 */
		public int clickVolume;
		@Id
		@GeneratedValue(strategy = GenerationType.AUTO)
		public long getId() {
			return id;
		}
		public void setId(long id) {
			this.id = id;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public String getQuestionContent() {
			return questionContent;
		}
		public void setQuestionContent(String questionContent) {
			this.questionContent = questionContent;
		}
		@OneToOne
		public User getCreator() {
			return creator;
		}
		public void setCreator(User creator) {
			this.creator = creator;
		}
		public Date getCreateTime() {
			return createTime;
		}
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}
		@OneToOne
		public User getModifyBy() {
			return modifyBy;
		}
		public void setModifyBy(User modifyBy) {
			this.modifyBy = modifyBy;
		}
		public Date getModifyTime() {
			return modifyTime;
		}
		public void setModifyTime(Date modifyTime) {
			this.modifyTime = modifyTime;
		}
		public boolean isDeleted() {
			return deleted;
		}
		public void setDeleted(boolean deleted) {
			this.deleted = deleted;
		}
		public int getClickVolume() {
			return clickVolume;
		}
		public void setClickVolume(int clickVolume) {
			this.clickVolume = clickVolume;
		}
		
}
