[Panache & Panache Reactive] How is the support for optional parameters in a query? #31875
-
Can Panache somehow handle optional parameters without the use of the criteria query api or using something like Our project is currently using Hibernate Reactive and not Panache Reactive but I'm looking for alternatives since we made the switch from Panache Reactive to Hibernate Reactive once before and could probably do the switch back. P.S. My first guess (this is what I gathered from the Quarkus guide) is that Panache has the same support as Hibernate... so no special case for non existent parameters in the query when a Map of parameters or the Parameter object is added to the HQL statement. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
/cc @FroMage (panache), @loicmathieu (panache) |
Beta Was this translation helpful? Give feedback.
As you said, Panache has the same support than Hibernate.
There is open issue about this, you can add feedback and +1 them:
There is also other extensions that provides this functionality, as Panache entities are JPA entities they can be used everywhere JPA can be used. For example JPAStreamer: https://quarkiverse.github.io/quarkiverse-docs/quarkus-jpastreamer/dev/index.html