📄 employee.java
字号:
package org.appfuse.model;
// Generated 2007-11-19 11:07:31 by Hibernate Tools 3.1.0.beta4
/**
* @struts.form include-all="true" extends="BaseForm"
* @hibernate.class * table="employee" *
*/
public class Employee extends org.appfuse.model.BaseObject implements java.io.Serializable {
// Fields
private Long id;
private String code;
private String dept;
private String name;
private String status;
private String telephone;
private String title;
// Constructors
/** default constructor */
public Employee() {
}
/** minimal constructor */
public Employee(String code, String dept, String name, String status, String title) {
this.code = code;
this.dept = dept;
this.name = name;
this.status = status;
this.title = title;
}
/** full constructor */
public Employee(String code, String dept, String name, String status, String telephone, String title) {
this.code = code;
this.dept = dept;
this.name = name;
this.status = status;
this.telephone = telephone;
this.title = title;
}
// Property accessors
/**
* * @hibernate.id * generator-class="native" * type="java.lang.Long" * column="id" *
*/
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
/**
* * @hibernate.property * column="code" * length="10" * not-null="true" *
*/
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
/**
* * @hibernate.property * column="dept" * length="50" * not-null="true" *
*/
public String getDept() {
return this.dept;
}
public void setDept(String dept) {
this.dept = dept;
}
/**
* * @hibernate.property * column="name" * length="20" * not-null="true" *
*/
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
/**
* * @hibernate.property * column="status" * length="10" * not-null="true" *
*/
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
/**
* * @hibernate.property * column="telephone" * length="20" *
*/
public String getTelephone() {
return this.telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
/**
* * @hibernate.property * column="title" * length="50" * not-null="true" *
*/
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
/**
* toString
* @return String
*/
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
buffer.append("code").append("='").append(getCode()).append("' ");
buffer.append("dept").append("='").append(getDept()).append("' ");
buffer.append("name").append("='").append(getName()).append("' ");
buffer.append("status").append("='").append(getStatus()).append("' ");
buffer.append("telephone").append("='").append(getTelephone()).append("' ");
buffer.append("title").append("='").append(getTitle()).append("' ");
buffer.append("]");
return buffer.toString();
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof Employee) ) return false;
Employee castOther = ( Employee ) other;
return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) ) && ( (this.getCode()==castOther.getCode()) || ( this.getCode()!=null && castOther.getCode()!=null && this.getCode().equals(castOther.getCode()) ) ) && ( (this.getDept()==castOther.getDept()) || ( this.getDept()!=null && castOther.getDept()!=null && this.getDept().equals(castOther.getDept()) ) ) && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) ) && ( (this.getStatus()==castOther.getStatus()) || ( this.getStatus()!=null && castOther.getStatus()!=null && this.getStatus().equals(castOther.getStatus()) ) ) && ( (this.getTelephone()==castOther.getTelephone()) || ( this.getTelephone()!=null && castOther.getTelephone()!=null && this.getTelephone().equals(castOther.getTelephone()) ) ) && ( (this.getTitle()==castOther.getTitle()) || ( this.getTitle()!=null && castOther.getTitle()!=null && this.getTitle().equals(castOther.getTitle()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
result = 37 * result + ( getCode() == null ? 0 : this.getCode().hashCode() );
result = 37 * result + ( getDept() == null ? 0 : this.getDept().hashCode() );
result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
result = 37 * result + ( getStatus() == null ? 0 : this.getStatus().hashCode() );
result = 37 * result + ( getTelephone() == null ? 0 : this.getTelephone().hashCode() );
result = 37 * result + ( getTitle() == null ? 0 : this.getTitle().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -