I have problem with multiple references to the same object in model layer.
Let's say I have two tables :
To set proper relation between tables I'm forced to create two dynamic tables from address.
ADDRESS_KEY AS SHIPPING_ADDRESS_KEY,
SOME_COL1 AS SH_SOME_COL1
/* retrieved from RESIDENT ... */
ADDRESS_KEY AS PAYMENT_ADDRESS_KEY,
SOME_COL1 AS PAY_SOME_COL1
is there any smarter way to do that? Do we really create copy of data or we are referring to the same physical place in memory?