Added Repository->getEntityClass() method.