docs: @Override
      public int compareTo(final BlockingState arg0) {
          // effective_date column NOT NULL
          final int comparison = effectiveDate.compareTo(arg0.getEffectiveDate());
          if (comparison == 0) {
              // Keep a stable ordering for ties
              final int comparison2 = createdDate.compareTo(arg0.getCreatedDate());
              if (comparison2 == 0 && arg0 instanceof DefaultBlockingState) {
                  final DefaultBlockingState other = (DefaultBlockingState) arg0;
                  // New element is last
                  if (totalOrdering == null) {
                      return 1;
                  } else if (other.getTotalOrdering() == null) {
                      return -1;
                  } else {
                      return totalOrdering.compareTo(other.getTotalOrdering());
                  }
              } else {
                  return comparison2;
              }
          } else {
              return comparison;
          }
      }