📄 address.java
字号:
package com.hb.base.domain.common;// Generated 2007/12/03 18:44:52 by Hibernate Tools 3.2.0.b11import com.hb.core.bean.BaseHibernateDomainBean;import org.apache.commons.lang.builder.EqualsBuilder;import org.apache.commons.lang.builder.HashCodeBuilder;/** * @author 何 貝 * * 人的住址信息 */public class Address extends BaseHibernateDomainBean { /***/ private static final long serialVersionUID = -5433607092511221366L; /** 人的住址ID */ private String addressID; /** 详细描述 */ private String description; /** 地址信息 */ private String addressInfo; /** 邮编号码 */ private String postcode; /** 电话号码 */ private String phone; /** No */ private Integer no; private String personID; private Person person; public Address() { } public Address(String addressID, Person person) { this.addressID = addressID; this.person = person; } public Address(String addressID, String description, String addressInfo, String postcode, String phone, Person person, Integer no) { this.addressID = addressID; this.description = description; this.addressInfo = addressInfo; this.postcode = postcode; this.phone = phone; this.no = no; this.person = person; if (person != null) { this.personID = person.getPersonID(); } } public String getAddressID() { return this.addressID; } public void setAddressID(String addressID) { this.addressID = addressID; } public String getDescription() { return this.description; } public void setDescription(String description) { this.description = description; } public String getAddressInfo() { return this.addressInfo; } public void setAddressInfo(String addressInfo) { this.addressInfo = addressInfo; } public String getPostcode() { return this.postcode; } public void setPostcode(String postcode) { this.postcode = postcode; } public String getPhone() { return this.phone; } public void setPhone(String phone) { this.phone = phone; } protected String getPersonID() { return this.personID; } protected void setPersonID(String personID) { this.personID = personID; } public Person getPerson() { return this.person; } public void setPerson(Person person) { if (person != null) { this.personID = person.getPersonID(); } this.person = person; } public Integer getNo() { return no; } public void setNo(Integer no) { this.no = no; } /** * @see java.lang.Object#equals(Object) */ public boolean equals(Object object) { if (!(object instanceof Address)) { return false; } Address rhs = (Address) object; return new EqualsBuilder().append(this.addressID, rhs.addressID).isEquals(); } /** * @see java.lang.Object#hashCode() */ public int hashCode() { return new HashCodeBuilder(-723666683, -507811071).append(this.addressID).toHashCode(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -