Master Detail Easy Example
If you have a source file like this, separated by a |:
where the lines that begins with letters are the Customers (master records) and
the lines that begins with numbers are the Orders (details records)
The two Mapping Classes are:
You need to define a Selector Method too:
Finally you must to instanciate a MasterDetailEngine and Read/Write files:
Now you have a MasterDetails array named res where every item in the array is a MasterDetails object.
If you want to access the Master or Detail objects you can use:
See also
Must Read - Quick Start Guide - Attributes
List - F.A.Q. - Examples of
Use - Contacts & Credits - Donations