Improve Panache projection with Hibernate ORM and Reactive
Fixes #26284
It makes it possible to use projection with HQL queries with a select clause.
@loicmathieu this seems to work.
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building bbbffc506ce0e2a1615136e49406177d0f735751
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Gradle Tests - JDK 11 Windows | Build |
Failures | Logs | Raw logs |
Full information is available in the Build summary check run.
Failures
:gear: Gradle Tests - JDK 11 Windows #
- Failing: integration-tests/gradle
:package: integration-tests/gradle
✖ io.quarkus.gradle.devmode.MultiSourceProjectDevModeTest.main line 22 - More details - Source on GitHub
org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in io.quarkus.test.devmode.util.DevModeTestUtils that uses java.util.function.Supplier, java.util.function.Supplierjava.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReferencejava.lang.String, java.lang.Stringboolean was not fulfilled within 1 minutes.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
I don't mind updating the documentation, but I would like to make sure that we agree on this approach and we are going to merge it before updating the docs.
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 22438f5d14ebf7f7dc2326594ae60cae23a14396
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | JVM Tests - JDK 11 | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 11 Windows | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 17 | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 18 | Build |
Failures | Logs | Raw logs |
| ✖ | Native Tests - Data3 | Build |
Failures | Logs | Raw logs |
Full information is available in the Build summary check run.
Failures
:gear: JVM Tests - JDK 11 #
- Failing: integration-tests/hibernate-orm-panache
:package: integration-tests/hibernate-orm-panache
✖ io.quarkus.it.panache.PanacheFunctionalityTest.testPanacheFunctionality - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: JVM Tests - JDK 11 Windows #
- Failing: integration-tests/hibernate-orm-panache
:package: integration-tests/hibernate-orm-panache
✖ io.quarkus.it.panache.PanacheFunctionalityTest.testPanacheFunctionality - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: JVM Tests - JDK 17 #
- Failing: integration-tests/hibernate-orm-panache
:package: integration-tests/hibernate-orm-panache
✖ io.quarkus.it.panache.PanacheFunctionalityTest.testPanacheFunctionality - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: JVM Tests - JDK 18 #
- Failing: integration-tests/hibernate-orm-panache
:package: integration-tests/hibernate-orm-panache
✖ io.quarkus.it.panache.PanacheFunctionalityTest.testPanacheFunctionality - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: Native Tests - Data3 #
- Failing: integration-tests/hibernate-orm-panache
:package: integration-tests/hibernate-orm-panache
✖ io.quarkus.it.panache.PanacheFunctionalityInGraalITCase.testPanacheFunctionality - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
I've added an example in the guides and refactor the code to remove some of the trims. Let me know.
Ah nevermind, I need to add the feature to reactive. I was expecting this logic to be shared
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 11f6e0b9dd13d1ba6117097981a003cdad451a76
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Initial JDK 11 Build | Build |
Failures | Logs | Raw logs |
Failures
:gear: Initial JDK 11 Build #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ Failed to execute goal net.revelc.code.formatter:formatter-maven-plugin:2.19.0:validate (default) on project quarkus-integration-test-hibernate-reactive-panache: File '/home/runner/work/quarkus/quarkus/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java' has not been previously formatted. Please format file (for example by invoking `mvn -f integration-tests/hibernate-reactive-panache net.revelc.code.formatter:formatter-maven-plugin:2.19.0:format`) and commit before running validation!
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 3ec591aca765907344353b12cd00025544399e1e
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Initial JDK 11 Build | Build |
Failures | Logs | Raw logs |
Failures
:gear: Initial JDK 11 Build #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ Failed to execute goal net.revelc.code.formatter:formatter-maven-plugin:2.19.0:validate (default) on project quarkus-integration-test-hibernate-reactive-panache: File '/home/runner/work/quarkus/quarkus/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java' has not been previously formatted. Please format file (for example by invoking `mvn -f integration-tests/hibernate-reactive-panache net.revelc.code.formatter:formatter-maven-plugin:2.19.0:format`) and commit before running validation!
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building ff278d8612873ef326d6de5c9ddf44c0ff278d44
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Initial JDK 11 Build | Build |
Failures | Logs | Raw logs |
Failures
:gear: Initial JDK 11 Build #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ Failed to execute goal net.revelc.code:impsort-maven-plugin:1.7.0:check (check-imports) on project quarkus-integration-test-hibernate-reactive-panache: Imports are not sorted in /home/runner/work/quarkus/quarkus/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 2bac219ee67a3afb40d1e563e5a14d85147ee8c5
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Initial JDK 11 Build | Build |
Failures | Logs | Raw logs |
Failures
:gear: Initial JDK 11 Build #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ Failed to execute goal net.revelc.code:impsort-maven-plugin:1.7.0:check (check-imports) on project quarkus-integration-test-hibernate-reactive-panache: Imports are not sorted in /home/runner/work/quarkus/quarkus/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 11da5c3d936502edd4be1aa60640059244a5ea20
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| :heavy_check_mark: | Gradle Tests - JDK 11 | ||||
| ✖ | Gradle Tests - JDK 11 Windows | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 11 | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 17 | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 18 | Build |
Failures | Logs | Raw logs |
| ✖ | Native Tests - Data6 | Build |
Failures | Logs | Raw logs |
Full information is available in the Build summary check run.
Failures
:gear: Gradle Tests - JDK 11 Windows #
- Failing: integration-tests/gradle
:package: integration-tests/gradle
✖ io.quarkus.gradle.devmode.CompositeBuildWithDependenciesDevModeTest.main line 24 - More details - Source on GitHub
org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in io.quarkus.test.devmode.util.DevModeTestUtils that uses java.util.function.Supplier, java.util.function.Supplierjava.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReferencejava.lang.String, java.lang.Stringboolean was not fulfilled within 1 minutes.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
:gear: JVM Tests - JDK 11 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityTest.testPanacheFunctionality line 55 - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: JVM Tests - JDK 17 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityTest.testPanacheFunctionality line 55 - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: JVM Tests - JDK 18 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityTest.testPanacheFunctionality line 55 - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: Native Tests - Data6 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityInGraalITCase.testPanacheFunctionality - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building e43742b7d9efef775ef762366e9030e2a0da52fd
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | JVM Tests - JDK 11 | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 17 | Build |
Failures | Logs | Raw logs |
| ✖ | JVM Tests - JDK 18 | Build |
Failures | Logs | Raw logs |
| ✖ | Native Tests - Data6 | Build |
Failures | Logs | Raw logs |
Full information is available in the Build summary check run.
Failures
:gear: JVM Tests - JDK 11 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityTest.testPanacheFunctionality line 55 - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: JVM Tests - JDK 17 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityTest.testPanacheFunctionality line 55 - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: JVM Tests - JDK 18 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityTest.testPanacheFunctionality line 55 - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
:gear: Native Tests - Data6 #
- Failing: integration-tests/hibernate-reactive-panache
:package: integration-tests/hibernate-reactive-panache
✖ io.quarkus.it.panache.reactive.PanacheFunctionalityInGraalITCase.testPanacheFunctionality - More details - Source on GitHub
java.lang.AssertionError:
1 expectation failed.
Response body doesn't match expectation.
I've added the missing part for Hibernate Reactive, the guides and refactor the code. Something is failing on CI but I don't think it's related to these changes. It should be good to go
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 11327e9ca88d78e51d3eca3d5b92758ac160063f
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Gradle Tests - JDK 11 | Build |
Failures | Logs | Raw logs |
| :heavy_check_mark: | Gradle Tests - JDK 11 Windows |
Full information is available in the Build summary check run.
Failures
:gear: Gradle Tests - JDK 11 #
- Failing: integration-tests/gradle
:package: integration-tests/gradle
✖ io.quarkus.gradle.devmode.MultiModuleNamedInjectionDevModeTest.main line 21 - More details - Source on GitHub
org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in io.quarkus.test.devmode.util.DevModeTestUtils that uses java.util.function.Supplier, java.util.function.Supplierjava.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReferencejava.lang.String, java.lang.Stringboolean was not fulfilled within 1 minutes.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
✖ io.quarkus.gradle.devmode.MultiSourceProjectDevModeTest.main line 22 - More details - Source on GitHub
org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in io.quarkus.test.devmode.util.DevModeTestUtils that uses java.util.function.Supplier, java.util.function.Supplierjava.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReferencejava.lang.String, java.lang.Stringboolean was not fulfilled within 1 minutes.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 8986bc540881073d1683515d828d6acb7b34ba55
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Gradle Tests - JDK 11 | Build |
Failures | Logs | Raw logs |
| :heavy_check_mark: | Gradle Tests - JDK 11 Windows |
Full information is available in the Build summary check run.
Failures
:gear: Gradle Tests - JDK 11 #
- Failing: integration-tests/gradle
:package: integration-tests/gradle
✖ io.quarkus.gradle.devmode.MultiSourceProjectDevModeTest.main line 22 - More details - Source on GitHub
org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in io.quarkus.test.devmode.util.DevModeTestUtils that uses java.util.function.Supplier, java.util.function.Supplierjava.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReferencejava.lang.String, java.lang.Stringboolean was not fulfilled within 1 minutes.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
Failing Jobs - Building 02cfd2c868b23e69706c24d63b39695ee85e3dfc
| Status | Name | Step | Failures | Logs | Raw logs |
|---|---|---|---|---|---|
| ✖ | Gradle Tests - JDK 11 | Build |
Failures | Logs | Raw logs |
| :heavy_check_mark: | Gradle Tests - JDK 11 Windows |
Full information is available in the Build summary check run.
Failures
:gear: Gradle Tests - JDK 11 #
- Failing: integration-tests/gradle
:package: integration-tests/gradle
✖ io.quarkus.gradle.devmode.MultiSourceProjectDevModeTest.main line 22 - More details - Source on GitHub
java.lang.AssertionError:
Expecting actual:
@loicmathieu are you OK for me to merge this?
@FroMage yes, it's OK for me, I follow the discussion and had nothing to say ;)
I've updated the PR and added a commit that replaces all the it's to it is: https://github.com/quarkusio/quarkus/pull/26510/commits/4b45773a82bf44e7e6de359279b4a4e8787506d3
Thanks!