2008/10/22 bstack <[EMAIL PROTECTED]> > The problem we have is that the private constructor is what NHibernate > instantiates (not the public constructor where guard checks are > performed), hence we can end up "getting" an instance of X from the > database that is invalid. > > Is there any way to get NHibernate to call the constructor that > performs the guard checks? >
Yes there is but... do you have invalid instance in the DB ?do you really want that your class throw an exception in a fresh load from DB ? -- 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 -~----------~----~----~----~------~----~------~--~---
