#5958 [JAVA-RESTEASY] Add servialVersionId to generated model class when serializableModel=true (#6108)

This commit is contained in:
Yuantao 2017-07-22 04:50:18 -04:00 committed by wing328
parent a3c93a64b4
commit 9b6115ec65
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,9 @@ import io.swagger.annotations.*;
{{#description}}@ApiModel(description="{{{description}}}"){{/description}}
{{>generatedAnnotation}}
public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
{{#serializableModel}}
private static final long serialVersionUID = 1L;
{{/serializableModel}}
{{#vars}}{{#isEnum}}
{{>enumClass}}{{/isEnum}}{{#items.isEnum}}{{#items}}

View File

@ -3,6 +3,9 @@ import io.swagger.annotations.*;
{{#description}}@ApiModel(description="{{{description}}}"){{/description}}
{{>generatedAnnotation}}
public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
{{#serializableModel}}
private static final long serialVersionUID = 1L;
{{/serializableModel}}
{{#vars}}{{#isEnum}}{{^isContainer}}
{{>enumClass}}{{/isContainer}}{{/isEnum}}{{#items.isEnum}}{{#items}}