?? module.java
字號:
/*
* package com.lily.dap.model;
* class Module
*
* 創建日期 2005-8-2
*
* 開發者 zouxuemo
*
* 淄博百合電子有限公司版權所有
*/
package com.lily.dap.model;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* 這是一個模塊Bean,存儲模塊信息
*
* @author zouxuemo
*
* @hibernate.class table="module"
*/
public class Module extends BaseObject {
/**
* <code>serialVersionUID<code>
*/
private static final long serialVersionUID = 2286168378758137278L;
/**
* <code>id</code> 模塊ID
*/
private int id = 0;
/**
* <code>code</code> 模塊代碼
*/
private String code = "";
/**
* <code>name</code> 模塊名稱
*/
private String name = "";
/**
* <code>des</code> 模塊說明
*/
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 要設置的 id。
*/
public void setId(int id) {
this.id = id;
}
/**
* @return 返回 code。
*
* @hibernate.property
* @hibernate.column name="code" not-null="true" length="20"
*
* @struts.form-field
*/
public String getCode() {
return code;
}
/**
* @param code 要設置的 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 要設置的 name。
*/
public void setName(String name) {
this.name = name;
}
/**
* @return 返回 des。
*
* @hibernate.property
* @hibernate.column name="des" length="255"
*
* @struts.form-field
*/
public String getDes() {
return des;
}
/**
* @param des 要設置的 des。
*/
public void setDes(String des) {
this.des = des;
}
/**
* @see java.lang.Object#equals(Object)
*/
public boolean equals(Object object) {
if (!(object instanceof Module)) {
return false;
}
Module rhs = (Module) object;
return new EqualsBuilder().append(this.id, rhs.id).isEquals();
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return new HashCodeBuilder(-1268848737, 997999421).append(this.id).toHashCode();
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return new ToStringBuilder(this).append("id", this.id).append("code", this.code)
.append("name", this.name).append("des", this.des).toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -