I am using v.1.2.0.1001
What would cause a class to become:
CProxyTypeWorkListStateMachine_INHibernateProxy_ISerializable2
When I do a object.GetType()?
Here is the mapping file:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="StateMachine.WorkList, StateMachine" table="WorkList">
<id name="Id" type="Int64" unsaved-value="0">
<column name="Id" sql-type="bigint" not-null="true" unique="true" index="PK_WorkList"/>
<generator class="native" />
</id>
<discriminator column="Type" type="String"/>
<property name="Name" type="String">
<column name="Name" length="255" sql-type="varchar" not-null="true"/>
</property>
<property name="ValidatorType" type="String">
<column name="ValidatorType" length="255" sql-type="varchar" not-null="false"/>
</property>
<property name="ValidatorAssemblyName" type="String">
<column name="ValidatorAssemblyName" length="255" sql-type="varchar" not-null="false"/>
</property>
<property name="Error"/>
<property name="OnlyAllowUpdate"/>
<property name="Status" column="Status" type="StateMachine.Stat, StateMachine" />
<many-to-one name="State" class="StateMachine.State, StateMachine">
<column name="StateId" sql-type="bigint" not-null="true"/>
</many-to-one>
<bag name="Assignments" lazy="true" cascade="all-delete-orphan">
<key column="WorkListId"/>
<one-to-many class="StateMachine.Assignment, StateMachine"/>
</bag>
<many-to-one name="ExceptionWorkList" class="StateMachine.WorkList, StateMachine" cascade="all">
<column name="ExceptionWorkListId" sql-type="bigint" not-null="false"/>
</many-to-one>
<map name="Parameters" table="WorkListParameters" lazy="true" cascade="all-delete-orphan">
<key column="WorkListId"/>
<index column="`Key`" type="string"/>
<element column="`Value`" type="string"/>
</map>
<subclass name="StateMachine.UserControl, StateMachine">
</subclass>
<subclass name="StateMachine.DotNetWorkFlow, StateMachine">
<property name="WorkFlowType" type="String"/>
<property name="WorkFlowAssemblyName" type="String"/>
<property name="InstanceId" type="String"/>
</subclass>
</class>
</hibernate-mapping>
Thanks,
Marty