Hi Joe,

> Are addresses supposed to be reused across customers?

No, each customer has it's own address's

> I suspect by this mapping (or what I can see of it) that you only have
> as many addresses as you have types ...

Yes, if i need a new Addresstype i derive a new one from BaseAddress

>Or that you want all addresses
> of a given type to be in a list for a customer by having the customer
> store a type. Neither of which really makes sense to me.

All my Entity's dealing with addresses are mapped like this:

  HasMany<BaseAddress>(x => x.Addresses)
               .KeyColumn("Foreignkey")
               .NotFound.Ignore()
               .Cascade.AllDeleteOrphan()
               .Not.LazyLoad();
>
> Does customer have a property for address type? (aka the discriminator)

See above, but i would be interested in using a Discrimonator within
each of my Enity's

>
> Or does customer have a list of addressIds in a linking table?

See above, no linking table, the Addresses are linked only by
ForeignKey

Peter

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to