Hi All, I have 2 different entities (Contact and Account) which have a M2M relationship with the same entity (Address). So, in my M2M table, I have 3 fields: AddressId, ObjId, ObjType
Is it possible to define a discriminator field in many-to-many association?
Currently Contact and Account are completely separate tables. Do I need to create a base table, and define this M2M relationship for this base table, and then extend Contact and Account classes from this new base table? Or is there another way to do this?
Thanks, Onur.
|