entity: prevent updating primary property in save() method