hasPreviousPage function in hibernate-reactive-panache PanacheQueryImpl doesn't return an Uni? #38625
-
Were there any reasons, on why the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
/cc @DavideD (hibernate-reactive), @FroMage (panache), @gavinking (hibernate-reactive), @loicmathieu (panache) |
Beta Was this translation helpful? Give feedback.
-
I think the reason is that it doesn't need to be reactive. The others are reactive because they need a query to get the result. In term of API style, it's a bit weird though. |
Beta Was this translation helpful? Give feedback.
I think the reason is that it doesn't need to be reactive.
The others are reactive because they need a query to get the result.
In the case of
.hasPreviousPage
, it just checks if the current page index is bigger than 0 (I think).In term of API style, it's a bit weird though.