Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameterized limit support to smart query finder methods - findTopN(int limit) - rather than static findTop5() #2945

Open
mshannongit opened this issue May 17, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@mshannongit
Copy link

Feature description

At the moment, it seems the only way to supply a dynamic parameterized limit value is by using a customized @query

@query(value = "SELECT * FROM books b WHERE b.title LIKE :title LIMIT :limit)
List findBooks(String title, int limit);

It would be good if a dynamic limit value could be inferred based on method name

List findTopNBooksByTitle(String title, int limit);

@graemerocher graemerocher added the type: enhancement New feature or request label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants