Hi all,
I'm in the process (or at least trying) of upgrading our NH projects
from version 2.0.1 to 2.1.2 and I ran into an HQL issue that I can't
seem to resolve.
I have the following HQL query:
return sessionManager.Session
.CreateQuery(
"select new CatalogMoniker(c.Id, c.Name, c.Description ) from
Catalog c, c.ApplicationUsages.elements au WHERE au.Id = :appUsageId
ORDER BY c.Name")
.SetString("appUsageId", pApplicationUsageId)
.List<CatalogMoniker>();
which ran completely fin in version 2.0.1 but fails in 2.1.2 with the
following exception:
exception: NHibernate.Hql.Ast.ANTLR.QuerySyntaxException:
c.ApplicationUsages.elements is not mapped [select new
CatalogMoniker(c.Id, c.Name, c.Description ) from
Himco.Catalog.Domain.Catalog c, c.ApplicationUsages.elements au WHERE
au.Id = :appUsageId ORDER BY c.Name].
Does anyone have any ideas as to what changed or is wrong with this
query??? Thanks in advance for any help.
-Mike
--
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.