Probably a bug in Envers. Can you please JIRA this with a (minimal) failing 
test?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Pete Appleton
Sent: den 14 november 2012 17:13
To: [email protected]
Subject: [nhusers] Antlr.Runtime.MismatchedTokenException from Envers with 
generic entities

Hi,

Our domain model has a number of generic classes where the generic argument 
determines the type of an association - e.g.
PageQuestion<TQuestion> representing an instance of a question in a form's 
page, where TQuestion is the particular type of question (date, numeric, etc).  
This works fine from a basic NHibernate perspective (mapped using the 
conformist ByCode system), but we're getting the exception 

NHibernate.Hql.Ast.ANTLR.QuerySyntaxException: Exception of type 
'Antlr.Runtime.MismatchedTokenException' was thrown. when Envers attempts to 
execute the HQL

"select ee__ from
Foretel.SurveySystem.Domain.PageQuestion`1[[Foretel.SurveySystem.Domain.
TextQuestion, Foretel.SurveySystem.Domain, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=null]]_Aud ee__ where ee__.originalId.Id = :_p0 and ee__.EndRev 
is null"

Any help appreciated!

Thanks,
Pete

--
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.

-- 
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.

Reply via email to