Implemented the EntityCodeGenerator to compile custom code for each entity