hey guy this is visual studio debug output (see the attach!)
fabiomaulo, the exception say that CUP.Availability was not found, so i think the problem is there ;-)
this is Availability mapping file
Code:
<?xml version='1.0' encoding='utf-8'?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.0'>
<class name='CUP.Availability,CUP' table='DISPONIBILITA' lazy='false'>
<composite-id>
<key-property name='MainCategoryID' column='SPKEY' />
<key-property name='DiagnosticID' column='DIACOD' />
<key-property name='PerformanceTypeID' column='TPRCOD' />
<key-property name='AvailabilityDate' column='DISDAT' />
<key-property name='Hour' column='DISORA' />
<key-property name='Minute' column='DISMIN' />
</composite-id>
<property name='AvailabilityType' column='DISTIP' />
<property name='FreeAvailability' column='DISPPF' />
<property name='BusyAvailability' column='DISPPR' />
<property name='ForceAvailability' column='DISFRZ' />
<property name='Note' column='DISNOT' />
<many-to-one class ='CUP.MainCategory, CUP' name ='MainCategory' insert ='false' update='false' column ='SPKEY' />
<many-to-one class ='CUP.Diagnostic, CUP' name ='Diagnostic' insert ='false' update='false'>
<column name ='SPKEY'/>
<column name ='DIACOD'/>
</many-to-one>
<many-to-one class ='CUP.PerformanceType, CUP' name ='PerformanceType' insert ='false' update='false'>
<column name ='SPKEY'/>
<column name ='DIACOD'/>
<column name ='TPRCOD'/>
</many-to-one>
</class>
</hibernate-mapping>