ok..
so Ive narrowed it down.
IList caseInfo = session.CreateQuery("select new
> com.luzern.reports.view.CaseInfoView(caseInfo.CaseId) " +
> "from CaseInfo
> caseInfo where caseInfo.CaseId = :caseId")
> .SetDecimal("caseId", id).List();
When i run the above code, i get the same error. I have the CaseInfoView
added as a mapping to the NH config, but i still get the error:
Exception of type 'Antlr.Runtime.EarlyExitException' was thrown.
It doesnt like the use of the select new .. any idea is this syntax not
available in the latest NH3?
Please any help is greatly appreciated :(
Thanks
Neil
On Tuesday, February 25, 2014 11:34:05 AM UTC, Neil Hosey wrote:
>
> I had to upgrade the latest version of hibernate for a solution I have,
> but the problem is I am now getting a really weird exception for certain
> queries. Here is the important part of the stack trace:
>
> NHibernate.Hql.Ast.ANTLR.QuerySyntaxException: Exception of type
> 'Antlr.Runtime.EarlyExitException' was thrown. [select new
> xxx.LineItemView( item.Id) join y join z.. etc
>
> (I just removed our names spaces and the actual query)
>
> Would anyone have any idea why this is happening? Like i was saying I
> think for anything that isnt a simple query I seem to get this error? :/
>
> Thanks in advance
>
> Neil
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.