Skip to content

Commit

Permalink
quarkusio#36581 tested with JDK 11, no issue :( + remove System.out c…
Browse files Browse the repository at this point in the history
…ommitted by mistake.
  • Loading branch information
humcqc committed Jan 30, 2024
1 parent 1ca9678 commit 90a5943
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ public <T> CommonPanacheQueryImpl<T> project(Class<T> type) {
}

// build select clause with a constructor expression
StringBuilder selectClause = new StringBuilder("SELECT ");
selectClause.append(getParameterFromClass(type, null));
System.out.println(selectClause);
String selectClause = "SELECT " + getParameterFromClass(type, null);
return new CommonPanacheQueryImpl<>(this, selectClause + selectQuery,
"select count(*) " + selectQuery);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ public <T> CommonPanacheQueryImpl<T> project(Class<T> type) {
}

// build select clause with a constructor expression
StringBuilder selectClause = new StringBuilder("SELECT ");
selectClause.append(getParameterFromClass(type, null));
System.out.println(selectClause);
String selectClause = "SELECT " + getParameterFromClass(type, null);
return new CommonPanacheQueryImpl<>(this, selectClause + selectQuery,
"select count(*) " + selectQuery);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ void testDogDto2Projection(UniAsserter asserter) {
.project(DogDto2.class)
.firstResult(),
dogDto2 -> {
Assertions.assertNotNull(dogDto2);
Assertions.assertEquals("kit", dogDto2.name);
Assertions.assertEquals("hum", dogDto2.owner.name);
});
Expand Down

0 comments on commit 90a5943

Please sign in to comment.