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

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

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

    /** null. */
    private Long id;

    /** null. */
    private StoreInfo storeInfo;

    /** null. */
    private String catalog;

    /** null. */
    private String businessKey;

    /** null. */
    private String status;

    /** null. */
    private Date createTime;

    /** null. */
    private Date confirmTime;

    /** null. */
    private String description;

    /** null. */
    private String attr1;

    /** null. */
    private String attr2;

    /** null. */
    private String attr3;

    /** null. */
    private String attr4;

    /** null. */
    private String attr5;

    /** null. */
    private String tenantId;

    public StoreAttach() {
    }

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

    public StoreAttach(Long id, StoreInfo storeInfo, String catalog,
            String businessKey, String status, Date createTime,
            Date confirmTime, String description, String attr1, String attr2,
            String attr3, String attr4, String attr5, String tenantId) {
        this.id = id;
        this.storeInfo = storeInfo;
        this.catalog = catalog;
        this.businessKey = businessKey;
        this.status = status;
        this.createTime = createTime;
        this.confirmTime = confirmTime;
        this.description = description;
        this.attr1 = attr1;
        this.attr2 = attr2;
        this.attr3 = attr3;
        this.attr4 = attr4;
        this.attr5 = attr5;
        this.tenantId = tenantId;
    }

    /** @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. */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "INFO_ID")
    public StoreInfo getStoreInfo() {
        return this.storeInfo;
    }

    /**
     * @param storeInfo
     *            null.
     */
    public void setStoreInfo(StoreInfo storeInfo) {
        this.storeInfo = storeInfo;
    }

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

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

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

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

    /** @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. */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_TIME", length = 26)
    public Date getCreateTime() {
        return this.createTime;
    }

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

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

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

    /** @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 null. */
    @Column(name = "ATTR1", length = 200)
    public String getAttr1() {
        return this.attr1;
    }

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

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

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

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

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

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

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

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

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

    /** @return null. */
    @Column(name = "TENANT_ID", length = 50)
    public String getTenantId() {
        return this.tenantId;
    }

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