Hi,
I've got a mapped class which has a property with an enumeration type which is marked as [Serializable].  The mapping is as follows:
Code:
<property name="jobType" column="JobType" type="Enums.DeliveryJobType" access="field" />
The problem is that an exception is thrown by the GetTypeFromXML method of the Cfg\Binder.cs class saying that the Enums.DeliveryJobType enumeration can't be interpreted:
Code:
could not interpret type: Enum.DeliveryJobType
I traced through the code and it appears that the HeuristicType method in Type\TypeFactory.cs is receiving null from ReflectHelper.ClassForName because that method is actually throwing the following exception:
Code:
System.SystemException   {"Could not load type Enums.DeliveryJobType from assembly NHibernate, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null."}   System.SystemException
This seems a little wierd.  Should this method be looking in the NHibernate assembly rather than my assembly?
Cheers,
Symon.