1 25 26 28 29 package org.objectweb.jonas.jtests.beans.message; 30 31 34 public class MRecordPK implements java.io.Serializable { 35 36 public String uuid; 37 public String mdb; 38 39 public MRecordPK(String uuid, String mdb) { 40 this.uuid = uuid; 41 this.mdb = mdb; 42 } 43 44 public MRecordPK() { 46 } 47 48 public int hashCode() { 49 return (1); 50 } 51 52 public boolean equals(Object other) { 53 boolean isEqual = false; 54 if (other instanceof MRecordPK) { 55 isEqual = (uuid.equals(((MRecordPK) other).uuid) && mdb.equals(((MRecordPK) other).mdb)); 56 } 57 return isEqual; 58 } 59 60 } 61 | Popular Tags |