INTERNAL:
// Set the location where we found this query.
setLocation(javaClass.getName());
// Process the name
setName(namedNativeQuery.name());
// Process the query string.
setEJBQLString(namedNativeQuery.query());
// Process the query hints.
for (QueryHint hint : namedNativeQuery.hints()) {
addHint(new MetadataQueryHint(hint.name(), hint.value()));
}
// Process the result class.
setResultClass(namedNativeQuery.resultClass());
// Process the result set mapping.
setResultSetMapping(namedNativeQuery.resultSetMapping());