We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8f6df9 + 13c34c1 commit a6f9e98Copy full SHA for a6f9e98
modules/swagger-codegen/src/main/resources/Java/pojo.mustache
@@ -140,7 +140,12 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
140
{{{vendorExtensions.extraAnnotation}}}
141
{{/vendorExtensions.extraAnnotation}}
142
public {{{datatypeWithEnum}}} {{#isBoolean}}is{{/isBoolean}}{{getter}}() {
143
+ {{#parent}}
144
+ return {{name}} == null ? ({{{datatypeWithEnum}}}) this.get("{{name}}") : {{name}};
145
+ {{/parent}}
146
+ {{^parent}}
147
return {{name}};
148
149
}
150
{{^isReadOnly}}
151
0 commit comments