This question is locked. New answers and comments are not allowed.
I am having problems creating a model that uses Flat inheritance of a base type to multiple other classes. Basically I have a base type of “Addresses”, I also have other entity types, Corporations, Customers, Locations, Providers…… I want to store all of the address for those entities in the Addresses table. Each one of the entities may have multiple different addresses. I have established child classes of Addresses with the discriminator column set (ex, CorpAddresses, CustomerAddresses) and established an association between the entities and the respected type and set managed to true. All of the associations are set to use the same “Parent_ID”, and I have a feeling that is the problem.
When I try to insert any address besides whatever association I set up first, I get Foreign Key constraint exceptions. Is there another way that I can get around this or I going to be stuck using multiple back end address tables. I was wanting to keep them all in one table if possible to make querying for addresses and spatial mapping entities a little easier
.
Thanks for the help in advance.
When I try to insert any address besides whatever association I set up first, I get Foreign Key constraint exceptions. Is there another way that I can get around this or I going to be stuck using multiple back end address tables. I was wanting to keep them all in one table if possible to make querying for addresses and spatial mapping entities a little easier
.
Thanks for the help in advance.