Try :
<property name="Access" not-null="true" />
On Monday, March 9, 2015 at 3:26:14 PM UTC-4, JJ BB wrote:
>
> Hi Alexander,
>
> thanks for your answer. Your suggestion did not work. Finally the code
> working is:
>
> <property name="Access" type="myNamespace.ModulesAccess, myAssembly">
> <column name="Access"/>
> </property>
>
> Next code does not work (MappingException is raised). I guess it is a bug:
>
> <property name="Access" column="Access"
> type="Voesco.Carpathian.ModulesAccess, Voesco.Carpathian.SharedNp" not-null
> ="true"/>
>
> Thanks a lot!
>
>
> El dimecres, 25 febrer de 2015 21:18:52 UTC+1, JJ BB va escriure:
>>
>> Hi folks,
>>
>> Can anybody help me to map "ModulesAccess" property in .hbm.xml?
>>
>> Please as int in database. Not string.
>>
>> Cheers
>>
>> public class UserMenusAccess
>> {
>> (...)
>> public virtual ModulesAccess Access { get; set; }
>> }
>>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.