You can solve this issue in the Business Object Mapper tool. Because, Generated code have to be compiled with no errors.