I have my nHibernate setup and working correctly with QueryOver for most queries, however, whenever I try to do a HQL CreateQuery I get the exception that the entity isn't mapped. I can confirm that the same entity works fine using QueryOver.
Note: I am using fluent nHibernate
Any ideas what would cause this?
If you have disabled auto-import in your mappings (
<hibernate-mapping auto-import="false">
), then you will have to use fully-qualified class names everywhere in your queries, unqualified class names won't work.Otherwise, enable auto-import.
Like this: