package com.palmnest.model.notice;

import java.io.Serializable;
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.Table;

@Entity
@Table(name = "tb_wxtemplate_message_config")
public class WxtemplateMessageConfigModel implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = -1150328114729470072L;

	private int     id;
	private Integer wechat_template_id;
	private String  name;
	private String  param_key;
	private String  value;
	private Integer wechat_template_msg_id;
	private Date    createTime;
	private String  creator;
	private String  modifier;
	private Date    modifyTime;
	private String  isEnabled;


	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

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

	@Column(name = "wechat_template_id")
	public Integer getWechat_template_id() {
		return wechat_template_id;
	}

	public void setWechat_template_id(Integer wechat_template_id) {
		this.wechat_template_id = wechat_template_id;
	}

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "param_key")
	public String getParam_key() {
		return param_key;
	}

	public void setParam_key(String param_key) {
		this.param_key = param_key;
	}

	@Column(name = "value")
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "wechat_template_msg_id")
	public Integer getWechat_template_msg_id() {
		return wechat_template_msg_id;
	}

	public void setWechat_template_msg_id(Integer wechat_template_msg_id) {
		this.wechat_template_msg_id = wechat_template_msg_id;
	}

	@Column(name = "createTime")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "creator")
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "modifier")
	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	@Column(name = "modifyTime")
	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Column(name = "isEnabled")
	public String getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(String isEnabled) {
		this.isEnabled = isEnabled;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "WxtemplateMessageConfigModel [id=" + id + ", wechat_template_id=" + wechat_template_id + ", name="
				+ name + ", param_key=" + param_key + ", value=" + value + ", wechat_template_msg_id="
				+ wechat_template_msg_id + ", createTime=" + createTime + ", creator=" + creator + ", modifier="
				+ modifier + ", modifyTime=" + modifyTime + ", isEnabled=" + isEnabled + "]";
	}


}