// Process the named native query annotations.
// Look for a @NamedNativeQueries.
Annotation namedNativeQueries = getAnnotation(NamedNativeQueries.class);
if (namedNativeQueries != null) {
for (Annotation namedNativeQuery : (Annotation[]) MetadataHelper.invokeMethod("value", namedNativeQueries)) {
getProject().addQuery(new NamedNativeQueryMetadata(namedNativeQuery, getAccessibleObject()));
}
}
// Look for a @NamedNativeQuery.
Annotation namedNativeQuery = getAnnotation(NamedNativeQuery.class);
if (namedNativeQuery != null) {
getProject().addQuery(new NamedNativeQueryMetadata(namedNativeQuery, getAccessibleObject()));
}
}