Hi there,

I've got an issue with IQuery. I get a QuerySyntaxException stating that my 
model class is not mapped.

I've got a class library named:

FD.NHibernateDAL that holds the CountryInfo.hbm.xml file
FD.Model that holds the CountryInfo.cs class

The xml mapping file got the right reference for the namespace FD.Model and is 
set as Embedded Resource in Visual Studio

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="FD.Model" 
assembly="Model">
  <class name="FD.Model.CountryInfo" table="Country">

The query in question:

ISession session = NHibernateHelper.GetCurrentSession();
IQuery query = session.CreateQuery("SELECT p FROM FD.Model.CountryInfo");

FD.Model.CountryInfo is not mapped...

I'm using NHibernate 2.1.2, VS2008 and .NET 3.5

- more complex explanation

I've got a DALFactory that returns interfaces held in IDAL component from the 
NHibernateDAL.
The NHibernateDAL holds the hbm,xml files and a class to do the querying, they 
return an IList<CountryInfo> like in the example above.

Thank you for the help. Let me know if you need more detail.


--
Marcos Ramos

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