Serializes entities using HAL