📄 morestuff.java
字号:
//$Id: MoreStuff.java,v 1.1.2.1 2003/11/08 02:25:29 oneovthafew Exp $package org.hibernate.test;import java.io.Serializable;import java.util.Collection;public class MoreStuff implements Serializable { private String stringId; private int intId; private Collection stuffs; private String name; public boolean equals(Object other) { return ( (MoreStuff) other ).getIntId()==intId && ( (MoreStuff) other ).getStringId().equals(stringId); } public int hashCode() { return stringId.hashCode(); } /** * Returns the stuffs. * @return Collection */ public Collection getStuffs() { return stuffs; } /** * Sets the stuffs. * @param stuffs The stuffs to set */ public void setStuffs(Collection stuffs) { this.stuffs = stuffs; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name; } /** * Returns the intId. * @return int */ public int getIntId() { return intId; } /** * Returns the stringId. * @return String */ public String getStringId() { return stringId; } /** * Sets the intId. * @param intId The intId to set */ public void setIntId(int intId) { this.intId = intId; } /** * Sets the stringId. * @param stringId The stringId to set */ public void setStringId(String stringId) { this.stringId = stringId; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -