@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((offer == null) ? 0 : offer.hashCode());
   result = prime * result + ((offerCriteria == null) ? 0 : offerCriteria.hashCode());
   return result;
 }
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (!getClass().isAssignableFrom(obj.getClass())) return false;
   CriteriaOfferXrefPK other = (CriteriaOfferXrefPK) obj;
   if (offer == null) {
     if (other.offer != null) return false;
   } else if (!offer.equals(other.offer)) return false;
   if (offerCriteria == null) {
     if (other.offerCriteria != null) return false;
   } else if (!offerCriteria.equals(other.offerCriteria)) return false;
   return true;
 }