I have a case where I have two Datasources that have a one-to-one relationship. Is it possible to use a single DynamicForm to persist the entity and its related component? If so, how would that get serialized? Here is a Customer / Address example, my REST service automatically marshals the customer back into an object which has an object data structure in it, which would also get generated, the XML would need to look like this. This is not the actual case I'm doing this for but this is the necessary XML structure. If this is possible is there an example someone could point me to for this? I also have another case where I have a list of elements for a one-to-many, can this also be handled or do I need to submit the parent component and then the many components with the returned parents ID?
Example:
Example:
Code:
<Customer> <Name>Foo</Name> <Address> <StreetAddress>234</StreetAddress> <PostalCode>99999</PostalCode> </Address> </Customer>