Replace the old ResourceSupport (#4426)

#4425
This commit is contained in:
Dennis Melzer
2019-11-09 04:00:51 +01:00
committed by William Cheng
parent de162f7f34
commit 777e39007a
3 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -25,7 +25,7 @@ import javax.xml.bind.annotation.*;
{{/withXml}}
{{^parent}}
{{#hateoas}}
import org.springframework.hateoas.ResourceSupport;
import org.springframework.hateoas.RepresentationModel;
{{/hateoas}}
{{/parent}}

View File

@@ -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;