forked from loafle/openapi-generator-original
committed by
William Cheng
parent
de162f7f34
commit
777e39007a
@@ -248,7 +248,7 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.hateoas</groupId>
|
||||
<artifactId>spring-hateoas</artifactId>
|
||||
<version>0.25.0.RELEASE</version>
|
||||
<version>1.0.1.RELEASE</version>
|
||||
</dependency>
|
||||
{{/hateoas}}
|
||||
</dependencies>
|
||||
|
||||
@@ -25,7 +25,7 @@ import javax.xml.bind.annotation.*;
|
||||
{{/withXml}}
|
||||
{{^parent}}
|
||||
{{#hateoas}}
|
||||
import org.springframework.hateoas.ResourceSupport;
|
||||
import org.springframework.hateoas.RepresentationModel;
|
||||
{{/hateoas}}
|
||||
{{/parent}}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/{{#description}}
|
||||
@ApiModel(description = "{{{description}}}"){{/description}}
|
||||
{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}}
|
||||
public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{^parent}}{{#hateoas}}extends ResourceSupport {{/hateoas}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
|
||||
public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{^parent}}{{#hateoas}}extends RepresentationModel<{{classname}}> {{/hateoas}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
|
||||
{{#serializableModel}}
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user