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;

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

    /** null. */
    private Long id;

    /** null. */
    private AssetInfo assetInfo;

    /** null. */
    private String userId;

    /** null. */
    private Date lendDate;

    /** null. */
    private Date returnDate;

    /** null. */
    private String status;

    /** null. */
    private String operator;

    /** null. */
    private String description;

    public AssetLend() {
    }

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

    public AssetLend(Long id, AssetInfo assetInfo, String userId,
            Date lendDate, Date returnDate, String status, String operator,
            String description) {
        this.id = id;
        this.assetInfo = assetInfo;
        this.userId = userId;
        this.lendDate = lendDate;
        this.returnDate = returnDate;
        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 = "USER_ID", length = 64)
    public String getUserId() {
        return this.userId;
    }

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

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

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

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

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

    /** @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;
    }
}
