Maybe less relevant here, but I used an older version of the code generation and the solution was to use typeMappings in the (pom) configuration.