Hello,
I've got the following exception when I do :
Code:
ISessionFactory sessionFactory = (new Configuration()).Configure().BuildSessionFactory();
DataTransfer.Mappings.RssFeedCountries.hbm.xml(4,6): XML validation error: The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid child element 'property' in namespace 'urn:nhibernate-mapping-2.2'. List of possible elements expected: 'urn:nhibernate-mapping-2.2:meta urn:nhibernate-mapping-2.2:jcs-cache urn:nhibernate-mapping-2.2:cache urn:nhibernate-mapping-2.2:id urn:nhibernate-mapping-2.2:composite-id'.
I don't understand what the problem is. My mapping file for this table looks like this :
<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="DataTransfer.RssFeedCountries,DataTransfer" table="RSSFeedCountries" lazy="true">
<property type="int" not-null="true" name="RssFeedCountryid" column="[RSSFeedCountryID]" />
<property type="string" not-null="true" length="50" name="RssFeedCountry" column="[RSSFeedCountry]" />
</class>
</hibernate-mapping>
Does someone know what I'm doing wrong ?
Thanks