This XML was constructed basing on the model settings you have made in Entity Developer:
Code: Select all
<hibernate-mapping default-cascade="save-update" assembly="PM4.Model" namespace="PM4.Model" ...
<EnumType Name="OperationType" IsFlags="True" UnderlyingType="SByte" class="OperationType" ...
<EnumType Name="AccessType" IsFlags="True" UnderlyingType="SByte" class="AccessType, PM4.Model" ...
NHibernate runtime will take model's assembly and namespace names and construct the following types for your enums:PeterM wrote:I've send a model which includes two enums, one with the Assembly defined and one without (where I am assuming the default should be used?!).
- class="PM4.Model.OperationType, PM4.Model"
- class="PM4.Model.AccessType, PM4.Model"