I think I got my answer here
http://ayende.com/Blog/archive/2009/04/10/nhibernate-mapping-ndash-inheritance.aspx

unioned-subclass :)

On Aug 28, 9:03 am, Niclas Pehrsson <[email protected]> wrote:
> Hi say that I have an interface I would like to use in my queries but
> I do not wanna create an extra table for it for example say that I
> have
>
> IPet - the interface I wan't to be able to query, and I want to have
> many-to-one references to the interface.
>
> I have for example that implements IPet, but I want two tables so the
> connection will be made by querying. Is this possible? Shall I solve
> this in some other way than subclassing? Can I somehow in a cool way
> register IPet with some classes to be able to use the querying so If I
> query IPet then I get both Cow and Tiger entities. And I will only
> have two tables, Cow and Pet.
>
> Cow
> Tiger
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to