diff --git a/src/main/java/guru/springframework/spring6resttemplate/model/BeerDTOPageImpl.java b/src/main/java/guru/springframework/spring6resttemplate/model/BeerDTOPageImpl.java index a3607c67..aa1873ff 100644 --- a/src/main/java/guru/springframework/spring6resttemplate/model/BeerDTOPageImpl.java +++ b/src/main/java/guru/springframework/spring6resttemplate/model/BeerDTOPageImpl.java @@ -13,21 +13,21 @@ * Created by jt, Spring Framework Guru. */ @JsonIgnoreProperties(ignoreUnknown = true, value = "pageable") -public class BeerDTOPageImpl extends PageImpl { +public class BeerDTOPageImpl extends PageImpl { @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) - public BeerDTOPageImpl(@JsonProperty("content") List content, + public BeerDTOPageImpl(@JsonProperty("content") List content, @JsonProperty("number") int page, @JsonProperty("size") int size, @JsonProperty("totalElements") long total) { super(content, PageRequest.of(page, size), total); } - public BeerDTOPageImpl(List content, Pageable pageable, long total) { + public BeerDTOPageImpl(List content, Pageable pageable, long total) { super(content, pageable, total); } - public BeerDTOPageImpl(List content) { + public BeerDTOPageImpl(List content) { super(content); } }