appMetadata.addQueryToCollection(ann.name(), ann.query(), true, clazz);
}
if (clazz.isAnnotationPresent(NamedNativeQueries.class))
{
NamedNativeQueries ann = (NamedNativeQueries) clazz.getAnnotation(NamedNativeQueries.class);
NamedNativeQuery[] anns = ann.value();
for (NamedNativeQuery a : anns)
{
appMetadata.addQueryToCollection(a.name(), a.query(), true, clazz);
}
}