📄 rolemenu.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="RoleMenu.java.html"><i>www.relationinfo.com</i></a>
* </p>
*
* @author Jef
*
* @struts.form include-all="true" extends="BaseForm"
* @hibernate.class table="rolemenu"
*/
public class RoleMenu extends BaseObject implements Serializable {
private static final long serialVersionUID = 1132626262273359411L;
protected String menucode;
protected String rolecode;
/**
* Returns the menucode.
*
* @return String
*
* @struts.validator type="required"
* @hibernate.id column="menucode" length="20" generator-class="assigned"
*/
public String getMenucode() {
return menucode;
}
/**
* Returns the rolecode.
*
* @return String
*
* @struts.validator type="required"
* @hibernate.property column="rolecode"
*/
public String getRolecode() {
return rolecode;
}
/**
* 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.rolecode, rhs.menuname).append(
this.menucode, rhs.menucode).isEquals();
}
/**
* Generated using Commonclipse (http://commonclipse.sf.net)
*/
public int hashCode() {
return new HashCodeBuilder(-2022315247, 1437659757).append(
this.rolecode).append(this.menucode).toHashCode();
}
/**
* Generated using Commonclipse (http://commonclipse.sf.net)
*/
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("menucode", this.menucode).append("rolecode",
this.rolecode).toString();
}
public void setMenucode(String menucode) {
this.menucode = menucode;
}
public void setRolecode(String rolecode) {
this.rolecode = rolecode;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -