Fixed parameterized types error while generating entities