I try to play around with persistent layer,
I would like to create an examplary scenario.
I got 2 tables, one DOC_HDR with document header data,
and another DOC_ITM with document items,
like VBAK/VBAP or BKPF/BSEG tables in standard.
Now I would like to create persistent representation / representations for to model my test document.
What would be the right approach to do that?
Should I create a ZCL_DOC class which will contain header data,
plus table-type attribute inside the class containing references to item objects (ZCL_ITM)?
(From what I can see in persistence mapping tool there is no option to map internal tables.)
I would appreciate your comments on that.