Added support for generic comparable dto