I'm (perhaps foolishly) attempting to use the AliasToEntityMap transformer on and HQL/IQuery with no luck. The query builds fine, but when List() or Enumerable() is executed, a NullReferenceException occurs because a null alias list is being provided to the transformer (QueryTranslator creates a HolderInstantiator without any aliases).
Yes my HQL does have aliases defined in it: select ord from Order ord right join ord.Cutomer cust where ord.Cost > 0 I found a post that indicates aliases are only supported for the ICriteria queries, not IQuery: http://groups.google.com/group/nhusers/browse_thread/thread/7988b6e8a345cb56/cf65285021dadfa3?#cf65285021dadfa3 Anyone able to confirm this? ps as a workaround, im just selecting entities and creating the map manually: select ord, cust from Order ord right join ord.Cutomer cust where ord.Cost > 0 -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
