initialise id
Merge pull request #33 from carakas/fix-defaultEntityId

initialize id