?? menu.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 + -