Skip to content

Commit 41ff528

Browse files
committed
quarkusio#36581 tested with JDK 11, no issue :( + remove System.out committed by mistake.
1 parent 8c083e3 commit 41ff528

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ public <T> CommonPanacheQueryImpl<T> project(Class<T> type) {
122122
}
123123

124124
// build select clause with a constructor expression
125-
StringBuilder selectClause = new StringBuilder("SELECT ");
126-
selectClause.append(getParameterFromClass(type, null));
127-
System.out.println(selectClause);
125+
String selectClause = "SELECT " + getParameterFromClass(type, null);
128126
return new CommonPanacheQueryImpl<>(this, selectClause + selectQuery,
129127
"select count(*) " + selectQuery);
130128
}

extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/CommonPanacheQueryImpl.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ public <T> CommonPanacheQueryImpl<T> project(Class<T> type) {
112112
}
113113

114114
// build select clause with a constructor expression
115-
StringBuilder selectClause = new StringBuilder("SELECT ");
116-
selectClause.append(getParameterFromClass(type, null));
117-
System.out.println(selectClause);
115+
String selectClause = "SELECT " + getParameterFromClass(type, null);
118116
return new CommonPanacheQueryImpl<>(this, selectClause + selectQuery,
119117
"select count(*) " + selectQuery);
120118
}

integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ void testDogDto2Projection(UniAsserter asserter) {
364364
.project(DogDto2.class)
365365
.firstResult(),
366366
dogDto2 -> {
367+
Assertions.assertNotNull(dogDto2);
367368
Assertions.assertEquals("kit", dogDto2.name);
368369
Assertions.assertEquals("hum", dogDto2.owner.name);
369370
});

0 commit comments

Comments
 (0)