Skip to content

Commit

Permalink
feat: improved findByCriteria
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter committed Sep 19, 2024
1 parent 5e0b43b commit d687963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ quarkus.datasource.db-kind=postgresql
quarkus.datasource.jdbc.max-size=30
quarkus.datasource.jdbc.min-size=10
quarkus.hibernate-orm.jdbc.timezone=UTC
quarkus.hibernate-orm.log.sql=false
quarkus.hibernate-orm.log.sql=true
quarkus.http.auth.permission.health.paths=/q/*
quarkus.http.auth.permission.health.policy=permit
quarkus.http.auth.permission.legacy.paths=/1000kit-portal-server/*
Expand Down Expand Up @@ -80,3 +80,4 @@ app:
----


Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ public PageResult<Workspace> findBySearchCriteria(WorkspaceSearchCriteria criter
predicates.add(workspaceTable.get(NAME).in(criteria.getNames()));
}
if (criteria.getProductName() != null && !criteria.getProductName().isEmpty()) {
var workspaceQuery = this.getEntityManager().createQuery(cq);
workspaceQuery.setHint(HINT_LOAD_GRAPH,
this.getEntityManager().getEntityGraph(Workspace.WORKSPACE_PRODUCTS));
addSearchStringPredicate(predicates, cb, workspaceTable.get(PRODUCTS).get(Product_.PRODUCT_NAME),
criteria.getProductName());
}
Expand Down

0 comments on commit d687963

Please sign in to comment.