What is the recommended way to handle a use case like this:
A Client object which has 2 fields of type Address: homeAddress, workAddress
A clients table which has expanded columns for this. e.g. home_address_street_number, home_address_city, etc... (so like 5 columns for each address)
Currently DSL.newRecord doesn't pick it up at all, I am assuming because the column name can't find a match because of the custom Address type. How to best solve this? I was looking at RecordProviderMapper but I'm not sure if this will work for a case where you have 5 columns mapping to one object (which contains 5 fields). Also the fact that there are multiple of that type (home and work).
Thoughts?