Is possible to map a raw sql to an entity with NHibernate?
Like the following:
C# entity:
public virtual IList<Result> MyResult { get; set; }
Hbm.xml:
<bag name="MyResult">
<my-custom-sql type="Result">
SELECT * FROM ResultTable where MyComplexCondition = true
</my-custom-sql>
</bag>
Result has it own hbm.xml. Is possible to do what I want to achieve?