package com.reyun.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * C by song on 2017/9/4.
 */

@Entity
public class VirtualEvent {

    private Long id;
    private Long appId;
    private String name;
    private String eventList;
    private String type;
    private Long createAccount;
    private Date createTime = new Date();
    private Long modifyAccount;
    private Date modifyTime = new Date();
    private boolean isEnable;
    private String ch_name;

    private String eventListName;

    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }

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

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getName() {
        return name;
    }

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

    public String getEventList() {
        return eventList;
    }

    public void setEventList(String eventList) {
        this.eventList = eventList;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getCreateAccount() {
        return createAccount;
    }

    public void setCreateAccount(Long createAccount) {
        this.createAccount = createAccount;
    }

    public Date getCreateTime() {
        return createTime;
    }

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

    public Long getModifyAccount() {
        return modifyAccount;
    }

    public void setModifyAccount(Long modifyAccount) {
        this.modifyAccount = modifyAccount;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

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

    public boolean isEnable() {
        return isEnable;
    }

    public void setEnable(boolean enable) {
        isEnable = enable;
    }

    public String getCh_name() {
        return ch_name;
    }

    public void setCh_name(String ch_name) {
        this.ch_name = ch_name;
    }

    @Transient
    public String getEventListName() {
        return eventListName;
    }

    public void setEventListName(String eventListName) {
        this.eventListName = eventListName;
    }

    @Override
    public String toString() {
        return "VirtualEvent{" +
                "id=" + id +
                ", appId=" + appId +
                ", name='" + name + '\'' +
                ", eventList='" + eventList + '\'' +
                ", type='" + type + '\'' +
                ", createAccount=" + createAccount +
                ", createTime=" + createTime +
                ", modifyAccount='" + modifyAccount + '\'' +
                ", modifyTime=" + modifyTime +
                ", isEnable=" + isEnable +
                '}';
    }
}
