diff --git a/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java b/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java index b6ce7f8d0c35d..da2886ab64481 100644 --- a/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java +++ b/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java @@ -100,7 +100,7 @@ private CommonPanacheQueryImpl(CommonPanacheQueryImpl previousQuery, String n public CommonPanacheQueryImpl project(Class type) { String selectQuery = query; if (PanacheJpaUtil.isNamedQuery(query)) { - SelectionQuery q = session.createNamedSelectionQuery(query.substring(1)); + SelectionQuery q = session.createNamedSelectionQuery(query.substring(1)); selectQuery = getQueryString(q); }