Return an ID of added entity.