Auto generate entites only in BE mode.
Add class EntityHelper.