Adds entity creation to entity class and generated entities.