for (Map.Entry<String, Object> entry : paramterMap.entrySet()) {
if ("String".toLowerCase().equals(setType.toLowerCase())) {query.setParameter(entry.getKey(), entry.getValue());
queryList.setParameter(entry.getKey(), entry.getValue());
} else if ("List".toLowerCase().equals(setType.toLowerCase())) {
query.setParameterList(entry.getKey(),(Collection) entry.getValue());
queryList.setParameterList(entry.getKey(),(Collection) entry.getValue());
}
}