More improvements done on database model object classes in order to give
more speed on the code generation.
Merge branch 'cached-code-improvements' into develop
Added doc entry for BaseObject::getCachedCode()