package cn.com.poc.writing.model;

import java.io.Serializable;

import cn.com.yict.framemax.data.model.BaseModelClass;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

/**
 * Model class for biz_ai_writing_example
 * AI-写作 例子
 */
@Entity
@Table(name = "biz_ai_writing_example")
@DynamicInsert
@DynamicUpdate
public class BizAiWritingExampleModel extends BaseModelClass implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    private java.lang.Long id;

    @Column(name = "id", length = 19)
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public java.lang.Long getId() {
        return this.id;
    }

    public void setId(java.lang.Long id) {
        this.id = id;
        super.addValidField("id");
    }


    /**
     * type
     * 分类
     */
    private java.lang.String type;

    @Column(name = "type", length = 100)
    public java.lang.String getType() {
        return this.type;
    }

    public void setType(java.lang.String type) {
        this.type = type;
        super.addValidField("type");
    }


    /**
     * title
     * 标题
     */
    private java.lang.String title;

    @Column(name = "title", length = 100)
    public java.lang.String getTitle() {
        return this.title;
    }

    public void setTitle(java.lang.String title) {
        this.title = title;
        super.addValidField("title");
    }


    /**
     * description
     * 描述
     */
    private java.lang.String description;

    @Column(name = "description", length = 100)
    public java.lang.String getDescription() {
        return this.description;
    }

    public void setDescription(java.lang.String description) {
        this.description = description;
        super.addValidField("description");
    }


    /**
     * question
     * 提问
     */
    private java.lang.String question;

    @Column(name = "question", length = 100)
    public java.lang.String getQuestion() {
        return this.question;
    }

    public void setQuestion(java.lang.String question) {
        this.question = question;
        super.addValidField("question");
    }

    /**
     * icon
     * 图标
     */
    private String icon;

    @Column(name = "icon", length = 120)
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
        super.addValidField("icon");
    }
}