Access properties via static:: instead of self::.

The properties of `EntityGenerator` are now protected instead of private.
But this does not make sense until they are accessed with `static::`.
Otherwise the templates cannot be overwritten within a sub class.