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

📄 largessinfo.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * LargessInfo.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.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

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

	@Id
	@Column(name = "MenuId", nullable = false)
	private String menuId;

	@Column(name = "GuestAccouts", nullable = false)
	private String guestAccouts;

	@Column(name = "TableId")
	private String tableId;

	@Column(name = "FoodName")
	private String foodName;

	@Column(name = "Amount")
	private String amount;

	@Column(name = "LargessDate")
	@Temporal(TemporalType.TIMESTAMP)
	private Date largessDate;

	@Column(name = "LargessReason")
	private String largessReason;

	@Column(name = "HandleName")
	private String handleName;
    
    /** Creates a new instance of LargessInfo */
    public LargessInfo()
    {
    }

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

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

	/**
	 * 获取此 LargessInfo 的 menuId。
	 * @return menuId
	 */
	public String getMenuId()
	{
		return this.menuId;
	}

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

	/**
	 * 获取此 LargessInfo 的 guestAccouts。
	 * @return guestAccouts
	 */
	public String getGuestAccouts()
	{
		return this.guestAccouts;
	}

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

	/**
	 * 获取此 LargessInfo 的 tableId。
	 * @return tableId
	 */
	public String getTableId()
	{
		return this.tableId;
	}

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

	/**
	 * 获取此 LargessInfo 的 foodName。
	 * @return foodName
	 */
	public String getFoodName()
	{
		return this.foodName;
	}

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

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

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

	/**
	 * 获取此 LargessInfo 的 largessDate。
	 * @return largessDate
	 */
	public Date getLargessDate()
	{
		return this.largessDate;
	}

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

	/**
	 * 获取此 LargessInfo 的 largessReason。
	 * @return largessReason
	 */
	public String getLargessReason()
	{
		return this.largessReason;
	}

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

	/**
	 * 获取此 LargessInfo 的 handleName。
	 * @return handleName
	 */
	public String getHandleName()
	{
		return this.handleName;
	}

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

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

	/**
	 * 确定其他对象是否等于此 LargessInfo。当且仅当
	 * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 LargessInfo 对象时,
	 * 结果才为 <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 LargessInfo)) {
			return false;
		}
		LargessInfo other = (LargessInfo)object;
		if (this.menuId != other.menuId && (this.menuId == null || !this.menuId.equals(other.menuId))) return false;
		return true;
	}

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

⌨️ 快捷键说明

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