Generate entity content fix

* Use getId() method instead of protected property
* Rename file using lowercase name