OK, I changed my mind again. I will keep the company in base and derived classes.
Keeping it in the derived classes help me to improve the individual restriction, specially in the database. Keepint it in the base class help me to filter. It will be protected in the base class and the derived classes will update it when they're updated. I hope this works. On 13 nov, 11:30, CassioT <[EMAIL PROTECTED]> wrote: > Thank you Ayende, I was waiting for an answer to go on. > > I'll step back and filter by my base class. > > I think that will be a good NHibernate feature if it let us choose > between > put the filter in the base class or (exclusive or) in the derived > classes. > > Thank you > > On 13 nov, 11:00, "Ayende Rahien" <[EMAIL PROTECTED]> wrote: > > > filter in HBM is much preferred. > > > On Thu, Nov 13, 2008 at 2:21 PM, CassioT <[EMAIL PROTECTED]> wrote: > > > > Fabio, Is there another way to filter besides using the filter tag in > > > the hbm? > > > > I thought that I could use the OnPrepareStatement event but I don't > > > know if > > > it is a good idea because I'll have to parse the query to know wich > > > table is > > > queried, and than make my filter based in that. > > > > Wich one is better? Continue using filter in hbm or start using > > > OnPrepareStatement? Do you have a third option? > > > > Thank you. > > > > On 12 nov, 15:23, "Fabio Maulo" <[EMAIL PROTECTED]> wrote: > > > > example ? > > > > > 2008/11/12 CassioT <[EMAIL PROTECTED]> > > > > > > Hi, > > > > > > I really need to define a filter in a joined-subclass. What should I > > > > > do? Why is this not possible? > > > > > > Thank you > > > > > -- > > > > 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 -~----------~----~----~----~------~----~------~--~---
