Annotation[] annotations = type.getAnnotations();
NamedQueries namedQueries = getAnnotation(annotations, NamedQueries.class);
if (namedQueries != null) {
for (NamedQuery namedQuery : namedQueries.value()) {
IQuery query = buildQuery(namedQuery);
queries.put(namedQuery.name(), query);
}
}
else {
NamedQuery namedQuery = getAnnotation(annotations, NamedQuery.class);
if (namedQuery != null) {
IQuery query = buildQuery(namedQuery);
queries.put(namedQuery.name(), query);
}
}
}
catch (Exception e) {