Earlier today, I wanted to apply a filter on a joined-subclass. (I have one abstract base class, and two concrete subclasses, where one of these subclasses is 'context aware'). So, I decided to use NH's dynamic filtering capacities to retrieve only those instances of that particular subclass, that were valid in the current 'context' of the application.
However, it seemed that the filter was never applied (I assigned the filter using code). After a little bit of digging, it appears that NHibernate doesn't support that. I found out by defining the filter in my hbm mapping files. This threw an exception when the SessionFactory was built. So, I have to come up with an alternative approach to solve my problem (I have one in my mind), but that's beyond the scope of this topic. Next to the fact that I wonder why adding the filter through code didn't cause an exception to be thrown (I would've liked that :) ), I wonder why it is not possible to apply a filter on a joined-subclass ? Is this a feature that hasn't been implemented yet, or is it not possible to implement such feature ?
-- 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.
