Hi,
I accidentally posted this query on NHibernate Users group! Apologies for that.
I have a java class, with a member called "nativeFlag", which is of type java.lang.Boolean. (which means that it's nullable). In the mapping file, I haven't explicitly mentioned any type for nativeFlag.
When my table is created, the "nativeFlag" field is stored as a "tinyint" column in my Sybase DB.
Now, when the value in nativeFlag is NULL, I want NULL to be inserted in my DB. However, always 0 gets inserted.
How do I insert NULL in the table, if "nativeFlag" is null?
Need help on this.
Thanks in advance :-)
Harish.
|