@Override
public <T extends Entity> List<T> findByProperties(Class<T> clazz, NamedParameters properties) {
CriteriaQuery criteriaQuery = new CriteriaQuery(this, clazz);
for (Map.Entry<String, Object> each : properties.getParams().entrySet()) {
criteriaQuery = criteriaQuery.eq(each.getKey(), each.getValue());
}
return find(criteriaQuery);
}
@Override