email.java
来自「好东西,hibernate-3.2.0,他是一开元的树杖hibernate-3.」· Java 代码 · 共 40 行
JAVA
40 行
//$Id$
package org.hibernate.test.usercollection;
/**
* @author Gavin King
*/
public class Email {
private Long id;
private String address;
Email() {}
public String getAddress() {
return address;
}
public void setAddress(String type) {
this.address = type;
}
public Email(String type) {
this.address = type;
}
public boolean equals(Object that) {
if ( !(that instanceof Email) ) return false;
Email p = (Email) that;
return this.address.equals(p.address);
}
public int hashCode() {
return address.hashCode();
}
public Long getId() {
return id;
}
private void setId(Long id) {
this.id = id;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?