Make DataTransferObject comparable.