0
I am doing a Java API, and implemented the pagination, the result of JSON pagination is as follows:
{
"content": [
{
(AQUI TEM OS RESULTADOS DA QUERY)
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}
I also have another class called "Baseretorno" that has the same items as pagination, but in English:
{
"itens": [
{
(AQUI ERA PARA VIR O RESULTADO DA CONSULTA)
}
],
"paginacao": {
"pagina": 0,
"tamanhoPagina": 0,
"totalPaginas": 0,
"totalItens": 0
}
}
Basically, I would like to make the pagination by my class, so that it was displayed in Portuguese, I could not rename and nor modify the values of the "content" nor the other attributes of the Spring pagination. Can anyone help me with this, how could I make my class act the same, or pick up page values? Thanks.