In my data model I have a composition relationship as follows:
I assume I will need a PersonDataSource and a AddressDataSource.
I think I also need a PersonNameDataSource.
What I am not sure of is how to define a collection field for addresses and a composite field for personName in PersonDataSource.
Thanks for any guidance you can provide.
Code:
class Person { List<Address> addresses; PersonName personName; } class Address { String street; String city; String state; } class PersonName { String givenName; String familyName; }
I think I also need a PersonNameDataSource.
What I am not sure of is how to define a collection field for addresses and a composite field for personName in PersonDataSource.
Thanks for any guidance you can provide.
Comment