-
Notifications
You must be signed in to change notification settings - Fork 92
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
Spring Data integration requires order by item for unpaged repository invocation #1965
Comments
@beikov I have a prototypical fix for this that does not use a In general, the order item restriction for pagination proves to be an obstacle for using a Blaze-Persistence repository as a drop-in replacement for a native Spring Data JPA repository. |
Sounds good to me.
It's kind of odd to use a Since you can use both Blaze-Persistence and Spring Data JPA repositories, people can choose to continue using a broken Spring Data JPA based implementation, but I personally don't see such exceptions as a "problem" of the Blaze-Persistence integration. It's a user error which is not validated by Spring Data. |
…riaBuilder for unpaged Spring Data JPA repository invocations
…riaBuilder for unpaged Spring Data JPA repository invocations
…riaBuilder for unpaged Spring Data JPA repository invocations
…riaBuilder for unpaged Spring Data JPA repository invocations
…riaBuilder for unpaged Spring Data JPA repository invocations
…riaBuilder for unpaged Spring Data JPA repository invocations
…er for unpaged Spring Data JPA repository invocations
Description
The blaze-persistence integration for Spring Data JPA currently requires at least one order by item for an unpaged repository invocation.
Given a repository
and the following repository invocation
the invocation fails with the error
Expected behavior
The expected behavior is that the invocation works and produces a result without using pagination.
Actual behavior
The invocation fails.
Steps to reproduce
See issue description.
Environment
Version: 1.6.14
JPA-Provider: Hibernate 6.2
The text was updated successfully, but these errors were encountered: