Hibernate 5 - programmatically adding HBM mapping to the configuration - no named queries found

As long as the resource name is properly constructed and references the mapping file in your jar, it should work.