How are this two concepts work together ?
I have a scenario
Objective
My problem
Question
How are this two concepts work together ?
I have a scenario
Objective
My problem
Question
Another option is to create a view of the city table that includes the CountryName. Then get your DataGateway to select using the view and save using the table. In your domain objects make the CountryName field a dumb read only field. This approach might seem like a dirty hack but it does simplfy things.
You should use a join if you need h associated country name. Simply add another method like
fetchWithCountry
.