-
Notifications
You must be signed in to change notification settings - Fork 682
Extend support for special parameters to instances. #2626
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
Comments
gregturn
added a commit
that referenced
this issue
May 11, 2022
… type that extend those types. A custom finder with PageRequest, even though it extends Pageable, will fail when it would work fine with a narrowed input. Related: spring-projects/spring-data-jpa#2013 See #2626.
gregturn
added a commit
that referenced
this issue
May 11, 2022
… type that extend those types. A custom finder with PageRequest, even though it extends Pageable, will fail when it would work fine with a narrowed input. Related: spring-projects/spring-data-jpa#2013 See #2626.
gregturn
added a commit
that referenced
this issue
May 11, 2022
Spring Data Commons has a hard-coded list of special types than can be included in query methods including Pageable and Sort. A custom finder with PageRequest, even though it extends Pageable, will fail when it would work fine with a narrowed input. This extends the list using an isAssignableFrom check. Related: spring-projects/spring-data-jpa#2013 See #2626.
odrotbohm
pushed a commit
that referenced
this issue
May 12, 2022
Spring Data Commons has a hard-coded list of special types than can be included in query methods including Pageable and Sort. A custom finder with PageRequest, even though it extends Pageable, will fail when it would work fine with a narrowed input. This extends the list using an assignability check. Related: spring-projects/spring-data-jpa#2013 See #2626.
odrotbohm
pushed a commit
that referenced
this issue
May 12, 2022
Spring Data Commons has a hard-coded list of special types than can be included in query methods including Pageable and Sort. A custom finder with PageRequest, even though it extends Pageable, will fail when it would work fine with a narrowed input. This extends the list using an assignability check. Related: spring-projects/spring-data-jpa#2013 See #2626.
odrotbohm
pushed a commit
that referenced
this issue
May 12, 2022
Spring Data Commons has a hard-coded list of special types than can be included in query methods including Pageable and Sort. A custom finder with PageRequest, even though it extends Pageable, will fail when it would work fine with a narrowed input. This extends the list using an assignability check. Related: spring-projects/spring-data-jpa#2013 See #2626.
gregturn
added a commit
to spring-projects/spring-data-jpa
that referenced
this issue
May 12, 2022
…arameter. Spring Data Commons patched handling subclasses of special parameter types through spring-projects/spring-data-commons#2626. This commit adds test cases ensuring things work properly with Spring Data JPA. See #2013.
gregturn
added a commit
to spring-projects/spring-data-jpa
that referenced
this issue
May 12, 2022
…arameter. Spring Data Commons patched handling subclasses of special parameter types through spring-projects/spring-data-commons#2626. This commit adds test cases ensuring things work properly with Spring Data JPA. See #2013.
gregturn
added a commit
to spring-projects/spring-data-jpa
that referenced
this issue
May 12, 2022
…arameter. Spring Data Commons patched handling subclasses of special parameter types through spring-projects/spring-data-commons#2626. This commit adds test cases ensuring things work properly with Spring Data JPA. See #2013.
gregturn
added a commit
to spring-projects/spring-data-jpa
that referenced
this issue
May 12, 2022
Spring Data Commons patched handling subclasses of special parameter types through spring-projects/spring-data-commons#2626. This commit adds test cases ensuring things work properly with Spring Data JPA. See #2013.
gregturn
added a commit
to spring-projects/spring-data-jpa
that referenced
this issue
May 12, 2022
Spring Data Commons patched handling subclasses of special parameter types through spring-projects/spring-data-commons#2626. This commit adds test cases ensuring things work properly with Spring Data JPA. See #2013.
gregturn
added a commit
to spring-projects/spring-data-jpa
that referenced
this issue
May 12, 2022
Spring Data Commons patched handling subclasses of special parameter types through spring-projects/spring-data-commons#2626. This commit adds test cases ensuring things work properly with Spring Data JPA. See #2013.
trayanus1026
pushed a commit
to trayanus1026/spring-data-jpa-java
that referenced
this issue
Aug 5, 2023
Spring Data Commons patched handling subclasses of special parameter types through spring-projects/spring-data-commons#2626. This commit adds test cases ensuring things work properly with Spring Data JPA. See #2013.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parameter.TYPES
only checks if a query method's parameters exactly matchPageable
orSort
. They don't support if the parameter is an instance of the type, hence causing this sort of stack trace in, e.g. Spring Data JPA...This is what happens if you define a finder like this:
instead of this
The text was updated successfully, but these errors were encountered: