public boolean equals(Object obj) {
   if (obj == null) {
     return (false);
   } else if (obj instanceof CFInternetMajorVersionByNameIdxKey) {
     CFInternetMajorVersionByNameIdxKey rhs = (CFInternetMajorVersionByNameIdxKey) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredParentProjectId() != rhs.getRequiredParentProjectId()) {
       return (false);
     }
     if (!getRequiredName().equals(rhs.getRequiredName())) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFInternetMajorVersionBuff) {
     CFInternetMajorVersionBuff rhs = (CFInternetMajorVersionBuff) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredParentProjectId() != rhs.getRequiredParentProjectId()) {
       return (false);
     }
     if (!getRequiredName().equals(rhs.getRequiredName())) {
       return (false);
     }
     return (true);
   } else {
     return (false);
   }
 }
 public int compareTo(Object obj) {
   if (obj == null) {
     return (1);
   } else if (obj instanceof CFInternetMajorVersionByNameIdxKey) {
     CFInternetMajorVersionByNameIdxKey rhs = (CFInternetMajorVersionByNameIdxKey) obj;
     if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
       return (-1);
     } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
       return (1);
     }
     if (getRequiredParentProjectId() < rhs.getRequiredParentProjectId()) {
       return (-1);
     } else if (getRequiredParentProjectId() > rhs.getRequiredParentProjectId()) {
       return (1);
     }
     {
       int cmp = getRequiredName().compareTo(rhs.getRequiredName());
       if (cmp != 0) {
         return (cmp);
       }
     }
     return (0);
   } else if (obj instanceof CFInternetMajorVersionBuff) {
     CFInternetMajorVersionBuff rhs = (CFInternetMajorVersionBuff) obj;
     if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
       return (-1);
     } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
       return (1);
     }
     if (getRequiredParentProjectId() < rhs.getRequiredParentProjectId()) {
       return (-1);
     } else if (getRequiredParentProjectId() > rhs.getRequiredParentProjectId()) {
       return (1);
     }
     {
       int cmp = getRequiredName().compareTo(rhs.getRequiredName());
       if (cmp != 0) {
         return (cmp);
       }
     }
     return (0);
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, null);
   }
 }