01: package org.objectweb.jonas.jtests.beans.relation.lcp;
02:
03: public class SIMPLEPARENTPK implements java.io.Serializable {
04:
05: // Variables
06: public String spPkId;
07:
08: // Methods
09: public int hashCode() {
10: return spPkId.hashCode();
11: }
12:
13: public String toString() {
14: return "" + spPkId;
15: }
16:
17: public boolean equals(Object obj) {
18: if (obj == null || !(obj instanceof SIMPLEPARENTPK)) {
19: return false;
20: } else if (((SIMPLEPARENTPK) obj).spPkId.equals(this .spPkId)) {
21: return true;
22: } else {
23: return false;
24: }
25: }
26:
27: }
|