You CAN'T use <union-subclass> mapping more than one class to the same table. If you want use only one table you must use <subclass> or a trick like this http://fabiomaulo.blogspot.com/2008/10/power-of-orm.html
2009/2/20 Piotr Jakóbczyk <[email protected]> > > I know what union-subclass is and I read references about all > inheritance strategy implemented by NH. > In my example I used <union-subclass> (look at SubclassA entity > mapping). > But why, in my example, the changing of the order of mapping > definitions provide different behevoiur of NH. The first order raises > exception, but the second not. > > On 20 Lut, 13:45, Fabio Maulo <[email protected]> wrote: > > union-subclass is an advanced way provided by NH to implement the mapping > > pattern : table-per-concrete-class > > What you are looking for is the implementation of the pattern : > > table-per-class-hierarchy > > The tag for that is <subclass>; reference available herehttp:// > nhforge.org/doc/nh/en/index.html#mapping-declaration-subclass > > > > -- > > Fabio Maulo > > -- > Piotr Jakóbczyk > > > -- 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 -~----------~----~----~----~------~----~------~--~---
