package com.ifish.entity;

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;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ifish.serializer.CustomDateSerializer;

/** 
 * @ClassName: tbl_ueditor 
 * @date 2015年7月2日 下午16:40:00 
 *  
 */
@Entity
@Table(name="tbl_ueditor")
public class Ueditor implements Serializable{

	private static final long serialVersionUID = -6939110411331900619L;
	/**
	 * ID
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="ueditor_id")
	private Integer ueditorId;
	/**
	 * 标题
	 */
	@Column(name="ueditor_title",nullable=true,length=50)
	private String ueditorTitle;
	/**
	 * html名称
	 */
	@Column(name="html_name",length=100)
	private String htmlName;
	/**
	 * 信息类型
	 */
	@Column(name="ueditor_type",nullable=true,length=1)
	private String ueditorType;
	/**
	 * 创建时间
	 */
	@Column(name="create_time",columnDefinition="timestamp",updatable=false,length=1)
	private Date createTime;
	
	public Integer getUeditorId() {
		return ueditorId;
	}
	public void setUeditorId(Integer ueditorId) {
		this.ueditorId = ueditorId;
	}
	public String getUeditorTitle() {
		return ueditorTitle;
	}
	public void setUeditorTitle(String ueditorTitle) {
		this.ueditorTitle = ueditorTitle;
	}
	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getHtmlName() {
		return htmlName;
	}
	public void setHtmlName(String htmlName) {
		this.htmlName = htmlName;
	}
	public String getUeditorType() {
		return ueditorType;
	}
	public void setUeditorType(String ueditorType) {
		this.ueditorType = ueditorType;
	}
	
}
