Add static entityFactory functions to generated schema objects for convenience.