Ahhhhhhh... I see (and I was wrong; you CAN reflect the full inheritance
using subclass).
In that case, it _does_ look like a bug.

    Diego


On Sun, Aug 29, 2010 at 19:20, ggeurts <[email protected]> wrote:

> NH supports inheritance from Role or Person instead of Actor, but
> configuration now works only when the subclass elements are nested
> within the class element for the root of the inheritance chain.
>
> Regards,
> Gerke.
>
>
> On Aug 25, 4:07 pm, Diego Mijelshon <[email protected]> wrote:
> > Unless I'm mistaken*, From NH's point of view Developer should extend
> Actor,
> > not Role (regardless of the actual inheritance chain)
> >
> >     Diego
> >
> > *: but I'm mistaken many times, so it doesn't hurt to check.
> >
> > On Tue, Aug 24, 2010 at 06:13, ggeurts <[email protected]> wrote:
> > > Hello,
> >
> > > I am encountering a regression bug in the NHibernate 3.0.0 builds.
> >
> > > The following mapping document now throws a
> > > NHIbernate.MappingException with message "These classes referenced by
> > > 'extends' were not found":
> >
> > > <?xml version="1.0" encoding="utf-8" ?>
> > > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
> > >                   assembly="NHibernate.Test"
> > >                   namespace="NHibernate.Test.NHSpecificTest.NHxxxx">
> >
> > >  <class name="Actor" table="actors">
> > >    <id name="Id" column="person_id">
> > >      <generator class="increment" />
> > >    </id>
> > >    <discriminator column="actor-type" />
> >
> > >    <subclass name="Person" discriminator-value="P" />
> >
> > >    <subclass name="Role" discriminator-value="R">
> > >      <many-to-one name="Performer" class="Person" column="performer" /
> >
> > >    </subclass>
> > >  </class>
> >
> > >  <subclass name="Developer" extends="Role" discriminator-value="R-
> > > DEV" />
> > > </hibernate-mapping>
> >
> > > It seems that the hibernate-mapping/subclass/@extends attribute can no
> > > longer refer to hibernate-mapping/class//subclass elements.
> >
> > > I intend to file a bug in NHibernate JIRA.
> >
> > > Regards,
> > > Gerke.
> >
> > > --
> > > 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]<nhusers%[email protected]>
> <nhusers%[email protected]<nhusers%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/nhusers?hl=en.
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
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