mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
#5958 [JAVA-RESTEASY] Add servialVersionId to generated model class when serializableModel=true (#6108)
This commit is contained in:
parent
a3c93a64b4
commit
9b6115ec65
@ -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}}
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user