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

📄 menu.java

📁 STRUTS数据库项目开发宝典
💻 JAVA
字号:
package com.relationinfo.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * User class
 * 
 * This class is used to generate the Struts Validator Form as well as the
 * Hibernate mapping file.
 * 
 * <p>
 * <a href="Xx.java.html"><i>www.relationinfo.com</i></a>
 * </p>
 * 
 * @author Jef
 * 
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class table="menu"
 */
public class Menu extends BaseObject implements Serializable {
	private static final long serialVersionUID = 1132626262173359411L;

	protected String menucode;

	protected String menuname;

	protected String link;

	protected String describle;

	/**
	 * Returns the xxbm.
	 * 
	 * @return String
	 * 
	 * @struts.validator type="required"
	 * @hibernate.id column="menucode" length="20" generator-class="assigned"
	 */
	public String getMenucode() {
		return menucode;
	}

	/**
	 * Returns the menuname.
	 * 
	 * @return String
	 * 
	 * @struts.validator type="required"
	 * @hibernate.property column="menuname"
	 */
	public String getMenuname() {
		return menuname;
	}

	/**
	 * Returns the link.
	 * 
	 * @return String
	 * 
	 * @hibernate.property column="link"
	 */
	public String getLink() {
		return link;
	}

	/**
	 * Returns the describle.
	 * 
	 * @return String
	 * @hibernate.property column="describle"
	 */
	public String getDescrible() {
		return describle;
	}

	/**
	 * Sets the mbbm.
	 * 
	 * @param password
	 *            The password to set
	 */
	public void setMenuname(String mbbm) {
		this.menuname = mbbm;
	}

	/**
	 * Sets the yhbm.
	 * 
	 * @param yhbm
	 *            The yhbm to set
	 */
	public void setLink(String yhbm) {
		this.link = yhbm;
	}

	/**
	 * Sets the lmbm.
	 * 
	 * @param lmbm
	 *            The lmbm to set
	 */
	public void setDescrible(String lmbm) {
		this.describle = lmbm;
	}

	/**
	 * Generated using Commonclipse (http://commonclipse.sf.net)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof Menu)) {
			return false;
		}

		Menu rhs = (Menu) object;

		return new EqualsBuilder().append(this.menuname, rhs.menuname).append(
				this.link, rhs.link).append(this.menucode, rhs.menucode)
				.append(this.describle, rhs.describle).isEquals();
	}

	/**
	 * Generated using Commonclipse (http://commonclipse.sf.net)
	 */
	public int hashCode() {
		return new HashCodeBuilder(-2022315247, 1437659757).append(
				this.menuname).append(this.link).append(this.menucode).append(
				this.describle).toHashCode();
	}

	/**
	 * Generated using Commonclipse (http://commonclipse.sf.net)
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("describle", this.describle).append("menucode",
						this.menucode).append("menuname", this.menuname)
				.append("link", this.link).toString();
	}

	public void setMenucode(String menucode) {
		this.menucode = menucode;
	}

}

⌨️ 快捷键说明

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