package com.mossle.internal.sendmail.persistence.domain;

// Generated by Hibernate Tools
import java.util.HashSet;
import java.util.Set;

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

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

    /** null. */
    private Long id;

    /** null. */
    private String name;

    /** null. */
    private String groupName;

    /** null. */
    private String configCode;

    /** null. */
    private Integer priority;

    /** null. */
    private String appId;

    /** null. */
    private String appKey;

    /** null. */
    private String status;

    /** null. */
    private String description;

    /** . */
    private Set<SendmailQueue> sendmailQueues = new HashSet<SendmailQueue>(0);

    /** . */
    private Set<SendmailHistory> sendmailHistories = new HashSet<SendmailHistory>(
            0);

    public SendmailApp() {
    }

    public SendmailApp(Long id) {
        this.id = id;
    }

    public SendmailApp(Long id, String name, String groupName,
            String configCode, Integer priority, String appId, String appKey,
            String status, String description,
            Set<SendmailQueue> sendmailQueues,
            Set<SendmailHistory> sendmailHistories) {
        this.id = id;
        this.name = name;
        this.groupName = groupName;
        this.configCode = configCode;
        this.priority = priority;
        this.appId = appId;
        this.appKey = appKey;
        this.status = status;
        this.description = description;
        this.sendmailQueues = sendmailQueues;
        this.sendmailHistories = sendmailHistories;
    }

    /** @return null. */
    @Id
    @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 = 50)
    public String getName() {
        return this.name;
    }

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

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

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

    /** @return null. */
    @Column(name = "CONFIG_CODE", length = 50)
    public String getConfigCode() {
        return this.configCode;
    }

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

    /** @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 = "APP_ID", length = 200)
    public String getAppId() {
        return this.appId;
    }

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

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

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

    /** @return null. */
    @Column(name = "STATUS", length = 50)
    public String getStatus() {
        return this.status;
    }

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

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

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

    /** @return . */
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "sendmailApp")
    public Set<SendmailQueue> getSendmailQueues() {
        return this.sendmailQueues;
    }

    /**
     * @param sendmailQueues
     *            .
     */
    public void setSendmailQueues(Set<SendmailQueue> sendmailQueues) {
        this.sendmailQueues = sendmailQueues;
    }

    /** @return . */
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "sendmailApp")
    public Set<SendmailHistory> getSendmailHistories() {
        return this.sendmailHistories;
    }

    /**
     * @param sendmailHistories
     *            .
     */
    public void setSendmailHistories(Set<SendmailHistory> sendmailHistories) {
        this.sendmailHistories = sendmailHistories;
    }
}
