// Process the named query annotations.
// Look for a @NamedQueries.
Annotation namedQueries = getAnnotation(NamedQueries.class);
if (namedQueries != null) {
for (Annotation namedQuery : (Annotation[]) MetadataHelper.invokeMethod("value", namedQueries)) {
getProject().addQuery(new NamedQueryMetadata(namedQuery, getAccessibleObject()));
}
}
// Look for a @NamedQuery.
Annotation namedQuery = getAnnotation(NamedQuery.class);
if (namedQuery != null) {
getProject().addQuery(new NamedQueryMetadata(namedQuery, getAccessibleObject()));
}
}