package com.goafanti.common.model;

import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import com.goafanti.common.constant.ErrorConstants;

public class Policy {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.id
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@JsonFormat(shape=Shape.STRING)
	private Long id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.create_time
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private Date createTime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.edit_time
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private Date editTime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.title
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
	private String title;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.title_img
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
	private String titleImg;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.author
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
	private String author;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.type
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@Max(value = 99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
	@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
	private Integer type;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.source
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
	private String source;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.source_url
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
	private String sourceUrl;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.summary
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	@Size(min = 0, max = 144, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
	private String summary;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.audit_status
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private Integer auditStatus;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.hot
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private Integer hot;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.province
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private Integer province;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.city
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private Integer city;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.release_date
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private Date releaseDate;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column policy.content
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	private String content;
	@Size(min = 0, max = 64, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
	private String keyword;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.id
	 * @return  the value of policy.id
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Long getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.id
	 * @param id  the value for policy.id
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.create_time
	 * @return  the value of policy.create_time
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.create_time
	 * @param createTime  the value for policy.create_time
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.edit_time
	 * @return  the value of policy.edit_time
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Date getEditTime() {
		return editTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.edit_time
	 * @param editTime  the value for policy.edit_time
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.title
	 * @return  the value of policy.title
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.title
	 * @param title  the value for policy.title
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.title_img
	 * @return  the value of policy.title_img
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public String getTitleImg() {
		return titleImg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.title_img
	 * @param titleImg  the value for policy.title_img
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setTitleImg(String titleImg) {
		this.titleImg = titleImg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.author
	 * @return  the value of policy.author
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public String getAuthor() {
		return author;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.author
	 * @param author  the value for policy.author
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.type
	 * @return  the value of policy.type
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.type
	 * @param type  the value for policy.type
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.source
	 * @return  the value of policy.source
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public String getSource() {
		return source;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.source
	 * @param source  the value for policy.source
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setSource(String source) {
		this.source = source;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.source_url
	 * @return  the value of policy.source_url
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public String getSourceUrl() {
		return sourceUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.source_url
	 * @param sourceUrl  the value for policy.source_url
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.summary
	 * @return  the value of policy.summary
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public String getSummary() {
		return summary;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.summary
	 * @param summary  the value for policy.summary
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setSummary(String summary) {
		this.summary = summary;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.audit_status
	 * @return  the value of policy.audit_status
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Integer getAuditStatus() {
		return auditStatus;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.audit_status
	 * @param auditStatus  the value for policy.audit_status
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setAuditStatus(Integer auditStatus) {
		this.auditStatus = auditStatus;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.hot
	 * @return  the value of policy.hot
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Integer getHot() {
		return hot;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.hot
	 * @param hot  the value for policy.hot
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setHot(Integer hot) {
		this.hot = hot;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.province
	 * @return  the value of policy.province
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Integer getProvince() {
		return province;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.province
	 * @param province  the value for policy.province
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setProvince(Integer province) {
		this.province = province;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.city
	 * @return  the value of policy.city
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Integer getCity() {
		return city;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.city
	 * @param city  the value for policy.city
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setCity(Integer city) {
		this.city = city;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.release_date
	 * @return  the value of policy.release_date
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public Date getReleaseDate() {
		return releaseDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.release_date
	 * @param releaseDate  the value for policy.release_date
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setReleaseDate(Date releaseDate) {
		this.releaseDate = releaseDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column policy.content
	 * @return  the value of policy.content
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public String getContent() {
		return content;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column policy.content
	 * @param content  the value for policy.content
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	public void setContent(String content) {
		this.content = content;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
}