1 package org.objectweb.jonas.jtests.beans.relation.lcp; 2 3 4 public class SIMPLECHILDPK implements java.io.Serializable { 5 6 public String scPkId; 8 9 public int hashCode() { 11 return scPkId.hashCode(); 12 } 13 14 public String toString() { 15 return "" + scPkId; 16 } 17 18 public boolean equals(Object obj) { 19 if (obj == null || !(obj instanceof SIMPLECHILDPK)) { 20 return false; 21 } else if (((SIMPLECHILDPK) obj).scPkId.equals(this.scPkId)) { 22 return true; 23 } else { 24 return false; 25 } 26 } 27 28 } 29 | Popular Tags |