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