📄 menulist.java
字号:
/*
* MenuList1.java
*
* Created on 2007年6月18日, 下午8:54
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package dennis;
import java.io.Serializable;
/**
* 实体类 MenuList1
*
* @author Administrator
*/
public class MenuList implements Serializable {
private Integer menuId;
private String guestAccouts;
private String isCheckOut;
/** Creates a new instance of MenuList1 */
public MenuList() {
}
/**
* 使用指定的值创建 MenuList1 的新实例。
* @param menuId,MenuList1 的 menuId
*/
public MenuList(Integer menuId) {
this.menuId = menuId;
}
/**
* 获取此 MenuList1 的 menuId。
* @return menuId
*/
public Integer getMenuId() {
return this.menuId;
}
/**
* 将此 MenuList1 的 menuId 设置为指定的值。
* @param menuId,新建 menuId
*/
public void setMenuId(Integer menuId) {
this.menuId = menuId;
}
/**
* 获取此 MenuList1 的 guestAccouts。
* @return guestAccouts
*/
public String getGuestAccouts() {
return this.guestAccouts;
}
/**
* 将此 MenuList1 的 guestAccouts 设置为指定的值。
* @param guestAccouts,新建 guestAccouts
*/
public void setGuestAccouts(String guestAccouts) {
this.guestAccouts = guestAccouts;
}
/**
* 获取此 MenuList1 的 isCheckOut。
* @return isCheckOut
*/
public String getIsCheckOut() {
return this.isCheckOut;
}
/**
* 将此 MenuList1 的 isCheckOut 设置为指定的值。
* @param isCheckOut,新建 isCheckOut
*/
public void setIsCheckOut(String isCheckOut) {
this.isCheckOut = isCheckOut;
}
/**
* 返回对象的散列代码值。该实现根据此对象
* 中 id 字段计算散列代码值。
* @return 此对象的散列代码值。
*/
@Override
public int hashCode() {
int hash = 0;
hash += (this.menuId != null ? this.menuId.hashCode() : 0);
return hash;
}
/**
* 确定其他对象是否等于此 MenuList1。当且仅当
* 参数不为 null 且该参数是具有与此对象相同 id 字段值的 MenuList1 对象时,
* 结果才为 <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 MenuList)) {
return false;
}
MenuList other = (MenuList)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 "dennis.MenuList1[menuId=" + menuId + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -