From bbad2657092ea36b1f015d476b5cd55b69a7dd92 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Tue, 19 Aug 2014 13:25:23 +0200 Subject: [PATCH] =?UTF-8?q?Opraven=20dotaz=20pro=20vyhodnocen=C3=AD,=20jes?= =?UTF-8?q?tli=20je=20role=20po=C5=BEita=20v=20procesu=20schv=C3=A1len?= =?UTF-8?q?=C3=AD.=20closes=20#125?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/info/bukova/isspst/services/users/RoleServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/info/bukova/isspst/services/users/RoleServiceImpl.java b/src/main/java/info/bukova/isspst/services/users/RoleServiceImpl.java index 01fcae2c..070d6449 100644 --- a/src/main/java/info/bukova/isspst/services/users/RoleServiceImpl.java +++ b/src/main/java/info/bukova/isspst/services/users/RoleServiceImpl.java @@ -87,7 +87,7 @@ public class RoleServiceImpl extends AbstractService implements RoleServic @Override @Transactional public boolean isInWorkflow(Role role) { - Query q = dao.getQuery("select count(*) from Workflow where role = :role"); + Query q = dao.getQuery("select count(rt) from RequirementType rt join rt.workflow w join w.role role where role = :role"); q.setParameter("role", role); long i = (Long)q.uniqueResult(); return i != 0;