spring-projects / spring-projects/spring-data-relational

@Query support Slice and Page

Open
#1,760 4 comments 1 reaction 2 assignees View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.