Kimp (1) [Avatar] Offline
#1
Hi,

Awesome book.

In relation to One-to-Many relationships, (6.3.2), how would you go about linking three tables? i.e. one in TableA has many in TableB; one in TableB has many in TableC.

I can see how to link A to B, then B to C. Furthermore, I can see how I could take a record from A and findDependentRowset in Table B; then iterate over the rowset to findDependentRowsets in C.

Is this how you would go about it? If you were going to write a custom function to find all C for a given A, would this belong in the Table Data Gateway? (i.e. not the Row Data Gateway?) Or at a higher level in the model?

Thanks....