not-null is used by NH even at run-time to avoid DB hit. On Sun, Aug 8, 2010 at 2:48 PM, Ryan Hoffman <[email protected]> wrote:
> I believe that these are only used by nHibernate when you have it create > drop/create scripts for your DB schema. > > > Ryan Hoffman > Software Architect > The New Teacher Project > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of BreakPhreak > Sent: Sunday, August 08, 2010 9:59 AM > To: nhusers > Subject: [nhusers] not-null="true" unique="true" in mappings - what are > they good for > > hey there > > Assuming I have all the unique/not-null constraints on the DB level, I've > noticed that something similar may be defined in mappings. Hence, the > question: how those constraints are interpreted by NHibernate, what are they > good for and how they may affect the performance? > > thanks a lot > Sasha (BreakPhreak) > > -- > 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. > > -- > 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.
