This project is read-only.

User hbm.xml, boolean/UserType

Topics: Developer Forum
Feb 22, 2008 at 10:52 AM
Why use a UserType for boolean? YesNo or TrueFalse NHibernate type working correctly on my Oracle 10g.
<property name="IsApproved" type="YesNo" />
<property name="IsLockedOut" type="YesNo" />
Mar 4, 2008 at 1:40 AM
Thanks for your feedback. The original implementation was done when NHibernate did not handle this nicely. It may no longer be required. However, for backward compatibility the user type will be kept. I'll make sure that it is mentioned as a comment in the sample code that this may not be required. Can you please tell me which version of the Oracle drivers you are using and which version of NHibernate?