nhibernate - One-way inheritance with HNibernate -


i frankly haven't got clue search reagarding question, here goes.

i'm trying out different approaches new project i'm starting on.

i have postgresql dbms. have single db multiple schemas. idea there "root" schema, works foundation other schemas. i'm trying achieve sort of "one-way" inheritance. i'd queries in root-tables not @ subclassed schemas, haven't found way that.

when querying subclasses, i'd join base class, when querying base class, don't want query subclasses.

i understand difference between different inheritance approaches, i'm not sure if i'm trying possible.

my current setup works subclasses in different schemas, when querying base class, nhibernate goes query each of subclasses see if base class of types.

maybe behavior appropriate in situations, in others, i'd query base class "alone".

as requirement, base class cannot know subclasses (they're plugins/extensions).

hope above made sense - bit difficult express.

thanks in advance...

<class ... polymorphism="explicit"> 

see http://www.nhforge.org/doc/nh/en/index.html#mapping-declaration-class


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -