optaplanner-examples/src/main/java/org/optaplanner/examples/common/domain/AbstractPersistable.java
@Override
    public int compareTo(AbstractPersistable other) {
        return new CompareToBuilder()
                .append(getClass().getName(), other.getClass().getName())
                .append(id, other.id)
                .toComparison();
    }
@Override
    public int compareTo(AbstractPersistable other) {
        return new CompareToBuilder()
                .append(getClass().getName(), other.getClass().getName())
                .append(id, other.id)
                .toComparison();
    }
@ Override public int compareTo ( AbstractPersistable other ) { return new CompareToBuilder ( ) . append ( getClass ( ) . getName ( ) , other . getClass ( ) . getName ( ) ) . append ( id , other . id ) . toComparison ( ) ; }
Used by the GUI to sort the {@link ConstraintMatch} list
by {@link ConstraintMatch#getJustificationList()}.
@param other never null
@return comparison
Used by the GUI to sort the {