title: Define Named Query in NHibernate Fluent Mapping without .hbm or xml files
body: <p>Currently I am using NHibernate and Fluent mapping for as ORM.</p>
  
  <p>I use named queries to call stored procedures. The named queries are saved in <code>.hbm</code> files.</p>
  
  <p>e.g:</p>
  
  <pre><code>&lt;hibernate-mapping default-cascade="none" 
     xmlns="urn:nhibernate-mapping-2.2" 
     assembly="com.Entities" namespace="com.Entities" &gt;  
     &lt;sql-query name="QUERY_NAME" cacheable="false"&gt;
           &lt;return class="FreeText" alias="results" &gt;
              &lt;return-property name="Id" column="FreeTextId"/&gt;
              &lt;return-property name="FreeTextValue" column="FreeText"/&gt;
           &lt;/return&gt;
           exec PROC_NAME :PARAM1, :PARAM2  
     &lt;/sql-query&gt;    
   &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>I wanted to know if there is a way you can <strong>define Named Queries in Mapping classes</strong> so as to avoid using <code>.hbm</code> file altogether!</p>