package com.goafanti.common.model;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

import com.goafanti.common.constant.AFTConstants;

public class JtTag {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_tag.id
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	private String id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_tag.name
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	private String name;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_tag.create_time
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	private Date createTime;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_tag.id
	 * @return  the value of jt_tag.id
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	public String getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_tag.id
	 * @param id  the value for jt_tag.id
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_tag.name
	 * @return  the value of jt_tag.name
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_tag.name
	 * @param name  the value for jt_tag.name
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_tag.create_time
	 * @return  the value of jt_tag.create_time
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_tag.create_time
	 * @param createTime  the value for jt_tag.create_time
	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getCreateTimeFormattedDate() {
		if (this.createTime == null) {
			return null;
		} else {
			return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
		}
	}
}