Change id of entity to public