|
@@ -50,7 +50,7 @@ public class ProcessFactory extends ElementFactory {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
CacheCategory cacheCategory = new CacheCategory(Process.class);
|
|
CacheCategory cacheCategory = new CacheCategory(Process.class);
|
|
|
- CacheKey cacheKey = new CacheKey(application, edition);
|
|
|
|
|
|
|
+ CacheKey cacheKey = new CacheKey(application, edition, "enabled");
|
|
|
Process o = null;
|
|
Process o = null;
|
|
|
Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);
|
|
Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);
|
|
|
if (optional.isPresent()) {
|
|
if (optional.isPresent()) {
|
|
@@ -226,4 +226,4 @@ public class ProcessFactory extends ElementFactory {
|
|
|
cq.select(root.get(Process_.id)).where(p);
|
|
cq.select(root.get(Process_.id)).where(p);
|
|
|
return em.createQuery(cq).getResultList();
|
|
return em.createQuery(cq).getResultList();
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|