forget to make setEntityId protected