spring-projects / spring-projects/spring-data-relational
@Query support Slice and Page
Open
@mp911de is already working on this.
Since Apr 15, 2024.
status: pending-design-work
status: waiting-for-triage
- Dominant language
- Java
- Stars
- 827
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
Description
I know PartTreeJdbcQuery support Slice/Page since https://github.com/spring-projects/spring-data-relational/pull/952, but I need use @Query for customized sql and Pageable in parameter when my scenes of query is complicated.
like this:
@Query("a long sql")
Page<Long> findPage(Pageable pageable);
I had forked from 3.0.12 and write some code to implement this in StringBasedJdbcQuery.
see https://github.com/8btc-OnePiece/spring-data-jdbc/commit/32b231f40d0bf78dea63cf2cfa806a96d8ef36d4
I'm looking forward to any feedback, and confirm is there any guys need it or PR.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.