@classmethod
def _hash_key_attribute(cls):
    """
        Returns the attribute class for the hash key
        """
    for attr_cls in cls._get_attributes().values():
        if attr_cls.is_hash_key:
            return attr_cls
