It's excluded from my mappings.

On Feb 16, 7:20 pm, James Gregory <[email protected]> wrote:
> Is EntityBase excluded from your mappings? Should it be or is it actually a
> table?
>
> On Mon, Feb 16, 2009 at 8:28 PM, Adriano <[email protected]> wrote:
>
> > Hi.
>
> > I'm new to FluentNHibernate / NHibernate, and I would like to ask you
> > guys a question about mapping complex (or deep) inheritance
> > situations.
>
> > The class hierarchy I have is the following:
>
> > class Asset : EntityBase
> > {
> >  // ...
> >  // common properties
> > }
>
> > class Fund : Asset
> > {
> >  // ...
> >  // common fund properties
> > }
>
> > class EquityFund : Fund
> > {
> >  // ...
> >  // common equity fund properties
> > }
>
> > class FixedIncomeFund : Fund
> > {
> >  //
> >  // common fixed income fund properties
> > }
>
> > class Trade : EntityBase
> > {
> >  public Asset Asset { get; set; }
> > }
>
> > When I ask NH to generate the schema, the Asset table gets properly
> > generated, but fund table also gets generated with the same attributes
> > of the Asset table.  I'm using the latest version from the trunk (I
> > think it's revision 319).
>
> > What am I missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to