Criteria criteria = session.createCriteria(AccessRule.class);
if (policy != null) {
criteria.add(eq("policy", policy));
}
@SuppressWarnings("unchecked")
<BUG>List<AccessRule> result = criteria.list();
</BUG>
return result;
}
@Override

Criteria criteria = session.createCriteria(AccessRule.class);
if (policy != null) {
criteria.add(eq("policy", policy));
}
@SuppressWarnings("unchecked")
List<AccessRule> result = criteria.setCacheable(true).list();
return result;
}
@Override
