add generic converter for entities and dto objects