1 package league.ejb.entity; 2 3 import javax.ejb.*; 4 5 10 public final class PlaceInGroupPK implements java.io.Serializable { 11 12 public java.math.BigDecimal groupId; 13 public java.math.BigDecimal teamId; 14 17 public boolean equals(java.lang.Object otherOb) { 18 19 if (this == otherOb) { 20 return true; 21 } 22 if (!(otherOb instanceof league.ejb.entity.PlaceInGroupPK)) { 23 return false; 24 } 25 league.ejb.entity.PlaceInGroupPK other = (league.ejb.entity.PlaceInGroupPK) otherOb; 26 return ( 27 28 (groupId==null?other.groupId==null:groupId.equals(other.groupId)) 29 && 30 (teamId==null?other.teamId==null:teamId.equals(other.teamId)) 31 32 ); 33 } 34 35 38 public int hashCode() { 39 return ( 40 41 (groupId==null?0:groupId.hashCode()) 42 ^ 43 (teamId==null?0:teamId.hashCode()) 44 45 ); 46 } 47 48 } 49 | Popular Tags |