basehierarchymenu.java
来自「一个购房管理系统,JSF+Hibernate+Mssql2」· Java 代码 · 共 230 行
JAVA
230 行
package com.housesale.hibernate.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the HierarchyMenu table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="HierarchyMenu"
*/
public abstract class BaseHierarchyMenu implements Serializable {
public static String REF = "HierarchyMenu";
public static String PROP_MENU_ORDER = "menuOrder";
public static String PROP_MENU_ID = "menuId";
public static String PROP_PARENT_MENU_ID = "parentMenuId";
public static String PROP_MENU_NAME_EN_US = "menuNameEnUs";
public static String PROP_MENU_TYPE = "menuType";
public static String PROP_MENU_URL = "menuUrl";
public static String PROP_MENU_NAME_ZH_CN = "menuNameZhCn";
public static String PROP_ID = "id";
// constructors
public BaseHierarchyMenu () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseHierarchyMenu (java.lang.Integer id) {
this.setId(id);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String menuId;
private java.lang.String menuNameZhCn;
private java.lang.String menuNameEnUs;
private java.lang.String menuUrl;
private java.lang.Integer menuOrder;
private java.lang.String parentMenuId;
private java.lang.String menuType;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="assigned"
* column="ID"
*/
public java.lang.Integer getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Integer id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: MENU_ID
*/
public java.lang.String getMenuId () {
return menuId;
}
/**
* Set the value related to the column: MENU_ID
* @param menuId the MENU_ID value
*/
public void setMenuId (java.lang.String menuId) {
this.menuId = menuId;
}
/**
* Return the value associated with the column: MENU_NAME_ZH_CN
*/
public java.lang.String getMenuNameZhCn () {
return menuNameZhCn;
}
/**
* Set the value related to the column: MENU_NAME_ZH_CN
* @param menuNameZhCn the MENU_NAME_ZH_CN value
*/
public void setMenuNameZhCn (java.lang.String menuNameZhCn) {
this.menuNameZhCn = menuNameZhCn;
}
/**
* Return the value associated with the column: MENU_NAME_EN_US
*/
public java.lang.String getMenuNameEnUs () {
return menuNameEnUs;
}
/**
* Set the value related to the column: MENU_NAME_EN_US
* @param menuNameEnUs the MENU_NAME_EN_US value
*/
public void setMenuNameEnUs (java.lang.String menuNameEnUs) {
this.menuNameEnUs = menuNameEnUs;
}
/**
* Return the value associated with the column: MENU_URL
*/
public java.lang.String getMenuUrl () {
return menuUrl;
}
/**
* Set the value related to the column: MENU_URL
* @param menuUrl the MENU_URL value
*/
public void setMenuUrl (java.lang.String menuUrl) {
this.menuUrl = menuUrl;
}
/**
* Return the value associated with the column: MENU_ORDER
*/
public java.lang.Integer getMenuOrder () {
return menuOrder;
}
/**
* Set the value related to the column: MENU_ORDER
* @param menuOrder the MENU_ORDER value
*/
public void setMenuOrder (java.lang.Integer menuOrder) {
this.menuOrder = menuOrder;
}
/**
* Return the value associated with the column: PARENT_MENU_ID
*/
public java.lang.String getParentMenuId () {
return parentMenuId;
}
/**
* Set the value related to the column: PARENT_MENU_ID
* @param parentMenuId the PARENT_MENU_ID value
*/
public void setParentMenuId (java.lang.String parentMenuId) {
this.parentMenuId = parentMenuId;
}
/**
* Return the value associated with the column: MENU_TYPE
*/
public java.lang.String getMenuType () {
return menuType;
}
/**
* Set the value related to the column: MENU_TYPE
* @param menuType the MENU_TYPE value
*/
public void setMenuType (java.lang.String menuType) {
this.menuType = menuType;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.housesale.hibernate.HierarchyMenu)) return false;
else {
com.housesale.hibernate.HierarchyMenu hierarchyMenu = (com.housesale.hibernate.HierarchyMenu) obj;
if (null == this.getId() || null == hierarchyMenu.getId()) return false;
else return (this.getId().equals(hierarchyMenu.getId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?