?? rightoperation.java
字號:
/*
* package com.lily.dap.model.right;
* class RightOperate
*
* 創(chuàng)建日期 2005-7-19
*
* 開發(fā)者 zouxuemo
*
* 淄博百合電子有限公司版權(quán)所有
*/
package com.lily.dap.model.right;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import com.lily.dap.model.BaseObject;
/**
* 這是一個權(quán)限操作Bean,存儲權(quán)限操作信息
*
* @author zouxuemo
*
* @hibernate.class table="right_operation"
*/
public class RightOperation extends BaseObject {
/**
* @return 返回 serialVersionUID
*/
private static final long serialVersionUID = -760105678257922147L;
/**
* <code>id</code> 權(quán)限操作ID號
*/
private int id = 0;
/**
* <code>object_id</code> 所屬的權(quán)限對象編號
*/
private String objectCode = "";
/**
* <code>code</code> 權(quán)限操作代碼
*/
private String code = "";
/**
* <code>name</code> 權(quán)限操作名稱
*/
private String name = "";
/**
* <code>have_operation</code> 權(quán)限操作包含的子操作代碼列表,中間以","分隔開,類似于"read,write,..."的格式
*/
private String have_operation = "";
/**
* <code>des</code> 權(quán)限操作說明
*/
private String des = "";
/**
* @return 返回 id。
*
* @hibernate.id column="id"
* generator-class="native" unsaved-value="0"
*
* @struts.form-field
*/
public int getId() {
return id;
}
/**
* @param id 要設(shè)置的 id。
*/
public void setId(int id) {
this.id = id;
}
/**
* @return 返回 objectCode。
*
* @hibernate.property
* @hibernate.column name="objectCode" not-null="true" length="20"
*
* @struts.form-field
*/
public String getObjectCode() {
return objectCode;
}
/**
* @param objectCode 要設(shè)置的 objectCode。
*/
public void setObjectCode(String objectCode) {
this.objectCode = objectCode;
}
/**
* @return 返回 code。
*
* @hibernate.property
* @hibernate.column name="code" not-null="true" length="20"
*
* @struts.form-field
*/
public String getCode() {
return code;
}
/**
* @param code 要設(shè)置的 code。
*/
public void setCode(String code) {
this.code = code;
}
/**
* @return 返回 name。
*
* @hibernate.property
* @hibernate.column name="name" not-null="true" length="50"
*
* @struts.form-field
*/
public String getName() {
return name;
}
/**
* @param name 要設(shè)置的 name。
*/
public void setName(String name) {
this.name = name;
}
/**
* @return 返回 have_operation。
*
* @hibernate.property
* @hibernate.column name="have_operation" length="255" not-null="true"
*
* @struts.form-field
*/
public String getHave_operation() {
return have_operation;
}
/**
* @param have_operation 要設(shè)置的 have_operation。
*/
public void setHave_operation(String have_operation) {
this.have_operation = have_operation;
}
/**
* @return 返回 des。
*
* @hibernate.property
* @hibernate.column name="des" length="255"
*
* @struts.form-field
*/
public String getDes() {
return des;
}
/**
* @param des 要設(shè)置的 des。
*/
public void setDes(String des) {
this.des = des;
}
/**
* @see java.lang.Object#equals(Object)
*/
public boolean equals(Object object) {
if (!(object instanceof RightOperation)) {
return false;
}
RightOperation rhs = (RightOperation) object;
return new EqualsBuilder().append(this.id, rhs.id).append(this.objectCode, rhs.objectCode)
.append(this.code, rhs.code).isEquals();
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return new HashCodeBuilder(-1955903881, 417010785).append(this.id)
.append(this.objectCode).append(this.code).toHashCode();
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return new ToStringBuilder(this).append("id", this.id)
.append("objectCode", this.objectCode)
.append("code", this.code).append("name", this.name)
.append("have_operation", this.have_operation).append("des", this.des).toString();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -