package com.mossle.cal.domain;

// Generated by Hibernate Tools
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CalInfo .
 * 
 * @author Lingo
 */
@Entity
@Table(name = "CAL_INFO")
public class CalInfo implements java.io.Serializable {
    private static final long serialVersionUID = 0L;

    /** null. */
    private Long id;

    /** null. */
    private String name;

    /** null. */
    private String address;

    /** null. */
    private Integer type;

    /** null. */
    private Date startTime;

    /** null. */
    private Date endTime;

    /** null. */
    private Integer alertTime;

    /** null. */
    private Integer priority;

    /** null. */
    private Long userId;

    /** null. */
    private String descn;

    public CalInfo() {
    }

    public CalInfo(String name, String address, Integer type, Date startTime,
            Date endTime, Integer alertTime, Integer priority, Long userId,
            String descn) {
        this.name = name;
        this.address = address;
        this.type = type;
        this.startTime = startTime;
        this.endTime = endTime;
        this.alertTime = alertTime;
        this.priority = priority;
        this.userId = userId;
        this.descn = descn;
    }

    /** @return null. */
    @Id
    @GeneratedValue
    @Column(name = "ID", unique = true, nullable = false)
    public Long getId() {
        return this.id;
    }

    /**
     * @param id
     *            null.
     */
    public void setId(Long id) {
        this.id = id;
    }

    /** @return null. */
    @Column(name = "NAME", length = 200)
    public String getName() {
        return this.name;
    }

    /**
     * @param name
     *            null.
     */
    public void setName(String name) {
        this.name = name;
    }

    /** @return null. */
    @Column(name = "ADDRESS", length = 200)
    public String getAddress() {
        return this.address;
    }

    /**
     * @param address
     *            null.
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /** @return null. */
    @Column(name = "TYPE")
    public Integer getType() {
        return this.type;
    }

    /**
     * @param type
     *            null.
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /** @return null. */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "START_TIME", length = 26)
    public Date getStartTime() {
        return this.startTime;
    }

    /**
     * @param startTime
     *            null.
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /** @return null. */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "END_TIME", length = 26)
    public Date getEndTime() {
        return this.endTime;
    }

    /**
     * @param endTime
     *            null.
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /** @return null. */
    @Column(name = "ALERT_TIME")
    public Integer getAlertTime() {
        return this.alertTime;
    }

    /**
     * @param alertTime
     *            null.
     */
    public void setAlertTime(Integer alertTime) {
        this.alertTime = alertTime;
    }

    /** @return null. */
    @Column(name = "PRIORITY")
    public Integer getPriority() {
        return this.priority;
    }

    /**
     * @param priority
     *            null.
     */
    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    /** @return null. */
    @Column(name = "USER_ID")
    public Long getUserId() {
        return this.userId;
    }

    /**
     * @param userId
     *            null.
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /** @return null. */
    @Column(name = "DESCN", length = 200)
    public String getDescn() {
        return this.descn;
    }

    /**
     * @param descn
     *            null.
     */
    public void setDescn(String descn) {
        this.descn = descn;
    }
}
