This question is locked. New answers and comments are not allowed.
Hi,
I have a class model in which several classes have a relation to another set of classes which all derive from a common base class.
E.g. Customer has one CustomerAddress and Supplier has one SupplierAddress. Both CustomerAddress and SupplierAddress derive from Address and all addresses shouuld be stored in a single DB table using InheritanceStartegy.Flat.
How would I map this scenario? I tried along the lines of the one-to-one association sample in the documentation, but this obviously cannot work since it requires identical primary IDs in both tables which reference each other (which seems like a too strict constraint to me, anyway).
Thanks for any hints,
Lars.