Skip to content

[REQ] [Java][Spring] Return 'Page<Model>' instead of 'List<Model>' when using 'x-spring-paginated' #14062

@tofi86

Description

@tofi86

Is your feature request related to a problem? Please describe.

When using Spring Data Pageable in classes generated with the Spring generator and x-spring-paginated: true I would expect the return type to be Page<Model> instead of List<Model>.

Describe the solution you'd like

The Spring generator should return Page<Model> instead of List<Model> when using x-spring-paginated: true.

This has also been requested by @amelnikoff at #8315 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions