📄 stuff.java
字号:
//$Id: Stuff.java,v 1.1.2.1 2003/11/08 02:25:30 oneovthafew Exp $package org.hibernate.test;import java.io.Serializable;import java.util.TimeZone;public class Stuff implements Serializable { public int hashCode() { return new Long(id).hashCode(); } public boolean equals(Object other) { if ( ! (other instanceof Stuff) ) return false; Stuff otherStuff = (Stuff) other; return otherStuff.getId()==id && otherStuff.getFoo().getKey().equals( foo.getKey() ) && otherStuff.getMoreStuff().equals(moreStuff); } private long id; private FooProxy foo; private MoreStuff moreStuff; private TimeZone property; /** * Returns the foo. * @return Foo */ public FooProxy getFoo() { return foo; } /** * Returns the id. * @return long */ public long getId() { return id; } /** * Returns the property. * @return TimeZone */ public TimeZone getProperty() { return property; } /** * Sets the foo. * @param foo The foo to set */ public void setFoo(FooProxy foo) { this.foo = foo; } /** * Sets the id. * @param id The id to set */ public void setId(long id) { this.id = id; } /** * Sets the property. * @param property The property to set */ public void setProperty(TimeZone property) { this.property = property; } /** * Returns the moreStuff. * @return MoreStuff */ public MoreStuff getMoreStuff() { return moreStuff; } /** * Sets the moreStuff. * @param moreStuff The moreStuff to set */ public void setMoreStuff(MoreStuff moreStuff) { this.moreStuff = moreStuff; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -