After register the empty_clob() function in your own dialect, you can try using the "default" attribute of <column>.
On Fri, Oct 1, 2010 at 9:53 AM, cremor <[email protected]> wrote: > Is there a way to tell NHibernate to replace all values of empty > strings with the Oracle function empty_clob() in inserts/updates to a > specific column? > > I'd need this to insert a empty string to a CLOB column which has a > NOT NULL constraint (Oracle treats empty strings the same as NULLs, so > it tries to insert a NULL to my CLOB column). > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
