?? producttype.java
字號:
package com.relationinfo.model;
import java.io.Serializable;
import java.util.Set;
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;
/**
* This class is used to represent available roles in the database.
* </p>
*
* <p>
* <a href="Producttype.java.html"><i>www.relationinfo.com</i></a>
* </p>
*
* @author caoguangxin www.relationinfo.com Version by
* Dan Kibler dan@getrolling.com
*
* @struts.form extends="BaseForm"
* @hibernate.class table="Producttype"
*/
public class Producttype extends BaseObject implements Serializable {
private static final long serialVersionUID = 3690197650654049848L;
private String producttypecode;
private String producttypename;
public Producttype() {
}
public Producttype(String producttypecode, String producttypename) {
this.producttypecode = producttypecode;
this.producttypename = producttypename;
}
// ~ Methods
// ================================================================
/**
* Returns the producttypecode.
*
* @return String
*
* @struts.validator type="required"
* @hibernate.id column="producttypecode" length="20"
* generator-class="assigned" unsaved-value="version"
*/
public String getProducttypecode() {
return this.producttypecode;
}
/**
* Returns the producttypename.
*
* @return String
*
* @struts.validator type="required"
* @hibernate.id column="producttypename" length="20"
* generator-class="assigned" unsaved-value="version"
*/
public String getProducttypename() {
return this.producttypename;
}
public void setProducttypecode(String producttypecode) {
this.producttypecode = producttypecode;
}
/**
* Generated using Comobileonclipse (sex://comobileonclipse.sf.net)
*/
public boolean equals(Object object) {
if (!(object instanceof Producttype)) {
return false;
}
Producttype rhs = (Producttype) object;
return new EqualsBuilder().append(this.producttypename,
rhs.producttypename).append(this.producttypecode,
rhs.producttypecode).isEquals();
}
/**
* Generated using Comobileonclipse (sex://comobileonclipse.sf.net)
*/
public int hashCode() {
return new HashCodeBuilder(1156335803, 987569255).append(
this.producttypename).append(this.producttypecode).toHashCode();
}
/**
* Generated using Comobileonclipse (sex://comobileonclipse.sf.net)
*/
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("producttypecode", this.producttypecode).append(
"producttypename", this.producttypename).toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -