Add #attributes and #hydra_attributes methods to the entity