⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 goodininfo.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * GoodInInfo.java
 *
 * Created on 2007年6月4日, 下午10:07
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package temp;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 实体类 GoodInInfo
 * 
 * @author Virlene Cheng
 */
@Entity
@Table(name = "GoodInInfo")
public class GoodInInfo implements Serializable
{

	@Id
	@Column(name = "GoodsInID", nullable = false)
	private String goodsInID;

	@Column(name = "GoodsInDate", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date goodsInDate;

	@Column(name = "UnitPrice", nullable = false)
	private double unitPrice;

	@Column(name = "Amount", nullable = false)
	private double amount;

	@Column(name = "Sort", nullable = false)
	private String sort;

	@Column(name = "Handler", nullable = false)
	private String handler;

	@Column(name = "Remark")
	private String remark;

	@Column(name = "Operator", nullable = false)
	private String operator;

	@JoinColumn(name = "DepotID", referencedColumnName = "DepotID")
	@ManyToOne
	private DepotInfo depotID;

	@JoinColumn(name = "GoodsID", referencedColumnName = "GoodsID")
	@ManyToOne
	private GoodsInfo goodsID;

	@JoinColumn(name = "ProviderID", referencedColumnName = "ProviderID")
	@ManyToOne
	private ProviderInfo providerID;
    
    /** Creates a new instance of GoodInInfo */
    public GoodInInfo()
    {
    }

	/**
	 * 使用指定的值创建 GoodInInfo 的新实例。
	 * @param goodsInID,GoodInInfo 的 goodsInID
	 */
	public GoodInInfo(String goodsInID)
	{
		this.goodsInID = goodsInID;
	}

	/**
	 * 使用指定的值创建 GoodInInfo 的新实例。
	 * @param goodsInID,GoodInInfo 的 goodsInID
	 * @param goodsInDate,GoodInInfo 的 goodsInDate
	 * @param unitPrice,GoodInInfo 的 unitPrice
	 * @param amount,GoodInInfo 的 amount
	 * @param sort,GoodInInfo 的 sort
	 * @param handler,GoodInInfo 的 handler
	 * @param operator,GoodInInfo 的 operator
	 */
	public GoodInInfo(String goodsInID, Date goodsInDate, double unitPrice, double amount, String sort, String handler, String operator)
	{
		this.goodsInID = goodsInID;
		this.goodsInDate = goodsInDate;
		this.unitPrice = unitPrice;
		this.amount = amount;
		this.sort = sort;
		this.handler = handler;
		this.operator = operator;
	}

	/**
	 * 获取此 GoodInInfo 的 goodsInID。
	 * @return goodsInID
	 */
	public String getGoodsInID()
	{
		return this.goodsInID;
	}

	/**
	 * 将此 GoodInInfo 的 goodsInID 设置为指定的值。
	 * @param goodsInID,新建 goodsInID
	 */
	public void setGoodsInID(String goodsInID)
	{
		this.goodsInID = goodsInID;
	}

	/**
	 * 获取此 GoodInInfo 的 goodsInDate。
	 * @return goodsInDate
	 */
	public Date getGoodsInDate()
	{
		return this.goodsInDate;
	}

	/**
	 * 将此 GoodInInfo 的 goodsInDate 设置为指定的值。
	 * @param goodsInDate,新建 goodsInDate
	 */
	public void setGoodsInDate(Date goodsInDate)
	{
		this.goodsInDate = goodsInDate;
	}

	/**
	 * 获取此 GoodInInfo 的 unitPrice。
	 * @return unitPrice
	 */
	public double getUnitPrice()
	{
		return this.unitPrice;
	}

	/**
	 * 将此 GoodInInfo 的 unitPrice 设置为指定的值。
	 * @param unitPrice,新建 unitPrice
	 */
	public void setUnitPrice(double unitPrice)
	{
		this.unitPrice = unitPrice;
	}

	/**
	 * 获取此 GoodInInfo 的 amount。
	 * @return amount
	 */
	public double getAmount()
	{
		return this.amount;
	}

	/**
	 * 将此 GoodInInfo 的 amount 设置为指定的值。
	 * @param amount,新建 amount
	 */
	public void setAmount(double amount)
	{
		this.amount = amount;
	}

	/**
	 * 获取此 GoodInInfo 的 sort。
	 * @return sort
	 */
	public String getSort()
	{
		return this.sort;
	}

	/**
	 * 将此 GoodInInfo 的 sort 设置为指定的值。
	 * @param sort,新建 sort
	 */
	public void setSort(String sort)
	{
		this.sort = sort;
	}

	/**
	 * 获取此 GoodInInfo 的 handler。
	 * @return handler
	 */
	public String getHandler()
	{
		return this.handler;
	}

	/**
	 * 将此 GoodInInfo 的 handler 设置为指定的值。
	 * @param handler,新建 handler
	 */
	public void setHandler(String handler)
	{
		this.handler = handler;
	}

	/**
	 * 获取此 GoodInInfo 的 remark。
	 * @return remark
	 */
	public String getRemark()
	{
		return this.remark;
	}

	/**
	 * 将此 GoodInInfo 的 remark 设置为指定的值。
	 * @param remark,新建 remark
	 */
	public void setRemark(String remark)
	{
		this.remark = remark;
	}

	/**
	 * 获取此 GoodInInfo 的 operator。
	 * @return operator
	 */
	public String getOperator()
	{
		return this.operator;
	}

	/**
	 * 将此 GoodInInfo 的 operator 设置为指定的值。
	 * @param operator,新建 operator
	 */
	public void setOperator(String operator)
	{
		this.operator = operator;
	}

	/**
	 * 获取此 GoodInInfo 的 depotID。
	 * @return depotID
	 */
	public DepotInfo getDepotID()
	{
		return this.depotID;
	}

	/**
	 * 将此 GoodInInfo 的 depotID 设置为指定的值。
	 * @param depotID,新建 depotID
	 */
	public void setDepotID(DepotInfo depotID)
	{
		this.depotID = depotID;
	}

	/**
	 * 获取此 GoodInInfo 的 goodsID。
	 * @return goodsID
	 */
	public GoodsInfo getGoodsID()
	{
		return this.goodsID;
	}

	/**
	 * 将此 GoodInInfo 的 goodsID 设置为指定的值。
	 * @param goodsID,新建 goodsID
	 */
	public void setGoodsID(GoodsInfo goodsID)
	{
		this.goodsID = goodsID;
	}

	/**
	 * 获取此 GoodInInfo 的 providerID。
	 * @return providerID
	 */
	public ProviderInfo getProviderID()
	{
		return this.providerID;
	}

	/**
	 * 将此 GoodInInfo 的 providerID 设置为指定的值。
	 * @param providerID,新建 providerID
	 */
	public void setProviderID(ProviderInfo providerID)
	{
		this.providerID = providerID;
	}

	/**
	 * 返回对象的散列代码值。该实现根据此对象
	 * 中 id 字段计算散列代码值。
	 * @return 此对象的散列代码值。
	 */
	@Override
	public int hashCode()
	{
		int hash = 0;
		hash += (this.goodsInID != null ? this.goodsInID.hashCode() : 0);
		return hash;
	}

	/**
	 * 确定其他对象是否等于此 GoodInInfo。当且仅当
	 * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 GoodInInfo 对象时,
	 * 结果才为 <code>true</code>。
	 * @param 对象,要比较的引用对象
	 * 如果此对象与参数相同,则 @return <code>true</code>;
	 * 否则为 <code>false</code>。
	 */
	@Override
	public boolean equals(Object object)
	{
		// TODO: Warning - this method won't work in the case the id fields are not set
		if (!(object instanceof GoodInInfo)) {
			return false;
		}
		GoodInInfo other = (GoodInInfo)object;
		if (this.goodsInID != other.goodsInID && (this.goodsInID == null || !this.goodsInID.equals(other.goodsInID))) return false;
		return true;
	}

	/**
	 * 返回对象的字符串表示法。该实现根据 id 字段
	 * 构造此表示法。
	 * @return 对象的字符串表示法。
	 */
	@Override
	public String toString()
	{
		return "temp.GoodInInfo[goodsInID=" + goodsInID + "]";
	}
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -