public int compareTo(T_QueryOrderResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; T_QueryOrderResponse typedOther = (T_QueryOrderResponse) other; lastComparison = Boolean.valueOf(isSetResponseCode()).compareTo(typedOther.isSetResponseCode()); if (lastComparison != 0) { return lastComparison; } if (isSetResponseCode()) { lastComparison = TBaseHelper.compareTo(this.responseCode, typedOther.responseCode); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransactionID()).compareTo(typedOther.isSetTransactionID()); if (lastComparison != 0) { return lastComparison; } if (isSetTransactionID()) { lastComparison = TBaseHelper.compareTo(this.transactionID, typedOther.transactionID); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription()); if (lastComparison != 0) { return lastComparison; } if (isSetDescription()) { lastComparison = TBaseHelper.compareTo(this.description, typedOther.description); if (lastComparison != 0) { return lastComparison; } } return 0; }