Setting entity id