package com.mossle.asset.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;

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

    /** null. */
    private Long id;

    /** null. */
    private AssetInfo assetInfo;

    /** null. */
    private String beforeUserId;

    /** null. */
    private String afterUserId;

    /** null. */
    private Date updateTime;

    /** null. */
    private String reason;

    /** null. */
    private String status;

    /** null. */
    private String operator;

    /** null. */
    private String description;

    public AssetHistory() {
    }

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

    public AssetHistory(Long id, AssetInfo assetInfo, String beforeUserId,
            String afterUserId, Date updateTime, String reason, String status,
            String operator, String description) {
        this.id = id;
        this.assetInfo = assetInfo;
        this.beforeUserId = beforeUserId;
        this.afterUserId = afterUserId;
        this.updateTime = updateTime;
        this.reason = reason;
        this.status = status;
        this.operator = operator;
        this.description = description;
    }

    /** @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 AssetInfo getAssetInfo() {
        return this.assetInfo;
    }

    /**
     * @param assetInfo
     *            null.
     */
    public void setAssetInfo(AssetInfo assetInfo) {
        this.assetInfo = assetInfo;
    }

    /** @return null. */
    @Column(name = "BEFORE_USER_ID", length = 64)
    public String getBeforeUserId() {
        return this.beforeUserId;
    }

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

    /** @return null. */
    @Column(name = "AFTER_USER_ID", length = 64)
    public String getAfterUserId() {
        return this.afterUserId;
    }

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

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

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

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

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

    /** @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 = "OPERATOR", length = 64)
    public String getOperator() {
        return this.operator;
    }

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

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

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