Named query not known
The same error is thrown if the mapping file doesn't end with .hbm.xml. I have accidentally renamed a mapping file and dropped the .hbm. from the name, putting it back solved this issue for me.
the error was solved just by setting the Build Action property of .hbm.xml file to Embeded Resource