protected function getEntityHash(InternallyMappable $entity): string
    {
        $class = $entity->getEntityClass();

        $mapper = Manager::getMapper($class);

        $keyName = $mapper->getEntityMap()->getKeyName();

        return $class.'.'.$entity->getEntityAttribute($keyName);
    }