Table per subclass with Discriminator

36 views
Skip to first unread message

Andy Evans

unread,
Aug 22, 2011, 12:31:21 PM8/22/11
to ConfORM
I have a class hierarchy that I'm trying to map using confOrm. I have
3 classes, one base class (not abstract), and two classes that derive
from that base class. I'd like for the generated mapping file to use
Table per Subclass mapping using a discriminator that is defined on my
base class. How might I go about doing so?

Fabio Maulo

unread,
Aug 22, 2011, 12:48:41 PM8/22/11
to codec...@googlegroups.com
Table per Class Hierarchy needs discriminator
Table per Class does not need a discriminator
--
Fabio Maulo

Andy Evans

unread,
Aug 22, 2011, 1:46:56 PM8/22/11
to ConfORM
I was more interested in how to generate the <subclass> elements in
the configuration file and how to specify a specific property to be
used as a discriminator.

On Aug 22, 11:48 am, Fabio Maulo <fabioma...@gmail.com> wrote:
> Table per Class Hierarchy needs discriminator
> Table per Class does not need a discriminator
>

Fabio Maulo

unread,
Aug 22, 2011, 2:52:40 PM8/22/11
to codec...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages