Since i've upgraded to NHibernate 2.1 beta I've got an Antlr.Runtime.EarlyExitException exception when using "new" in HQL queries.
I've search the forum and found this solution. http://www.mail-archive.com/[email protected]/msg08111.html The problem is that i'm not sure what to change in the mapping file. Below i've pasted the HQL and mapping source. GetSession().CreateQuery(@"select new MyNamespace.MyClass(mc.Text) from MyClass mc") .List<MyNamespace.MyClass>(); <?xml version="1.0" encoding="utf-8"?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"> <class name="MyNamespace.MyClass,TT.COM" table="MyTable" lazy="true"> <id name="Id" column="Id" type="int"> <generator class="assigned" /> </id> <property name="Text" column="text" type="string" not-null="true" / > </class> </hibernate-mapping> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
