* Process a MetadataNamedNativeQuery. The actually query processing isn't
* done till addNamedQueriesToSession is called.
*/
protected void processNamedNativeQuery(MetadataNamedNativeQuery namedNativeQuery) {
if (m_project.hasNamedNativeQuery(namedNativeQuery.getName())) {
MetadataNamedNativeQuery existingNamedNativeQuery = m_project.getNamedNativeQuery(namedNativeQuery.getName());
if (existingNamedNativeQuery.loadedFromAnnotations() && namedNativeQuery.loadedFromXML()) {
// Override the existing query.
m_project.addNamedNativeQuery(namedNativeQuery);
} else {
// Ignore the query and log a message.
m_logger.logWarningMessage(namedNativeQuery.getIgnoreLogMessageContext(), namedNativeQuery.getLocation(), namedNativeQuery.getName());