I have a mapping file and I want to use component mapping for a nested class. Nhibernate keeps complaining with the following mapping file saying "Could not compile the mapping document." Anybody know what I'm doing wrong here? Thanks.
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false" namespace="NHibernate" assembly="NHibernate">
<class name="CampaignObjects.Campaign,Domain" table="advCampaign" lazy="false">
<id name="Id" column="CampaignId" type="Int32" unsaved-value="any">
<generator class="assigned"/>
</id>
<!-- Properties -->
<property column="StatusId" type="Int32" name="Status" not-null="true" />
<property column="CampaignName" type="String" name="Name" not-null="true" length="25" />
<property type="Decimal" name="Budget" column="MaxBudget" not-null="false"/>
<component name="DateRange" class="CampaignObjects.DateRange,Domain">
<property name="Start" type="DateTime" column="StartDate"/>
<property name="End" type="DateTime" column="EndDate"/>
</component>
</class>
</hibernate-mapping>
|