diff --git a/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java b/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java index e770360..3f0d036 100644 --- a/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java +++ b/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java @@ -105,7 +105,7 @@ public class QuarkusFilter { } public Uni> build(Class idType, String idField) { - final Query query = jooqFilter.generateQuery(idField); + final Query query = jooqFilter.generateQuery(tableName + "." + idField); final String sql = query.getSQL(); return pgPool.preparedQuery(sql) .execute() @@ -135,7 +135,7 @@ public class QuarkusFilter { } public Uni> filterResult(Class idType, String idField) { - jooqFilter.groupBy(idField); + jooqFilter.groupBy(tableName + "." + idField); jooqFilter.groupBy(sortFieldNames); distinctCount = true; final Uni count = count();