In Hibernate, is there a way to check if a given @NamedNativeQuery
exists before calling:
Session.getNamedQuery("queryName");
I am composing the name of the Query at runtime, so I need a way to find if it exists, in order to avoid the following exception:
MappingException: Named query not known: queryName