Just to confirm something with Target Tags when I want to implement a parent/child relationship among business entities; e.g. lets say I have a SalesOrderHeader and SalesOrderDetail table; on the SalesOrderHeader business entity, I need to set the IsParent target tag to True and the Child target tag to SalesOrderDetail; then on the SalesOrderDetail business entity I need to set the IsChild target tag to True, and the Parent target tag to SalesOrderHeader.
Is my understanding correct here - that I have to set these properties on both objects in the relationship? I'm thinking surely I just need to set the target tags on the child table? ie, set its IsChild to True, and its Parent to SalesOrder; this relates to a problem that I have in trying to set up a parent child relationship when I have a parent table that has more than one child table: "what value do I put into the Child target tag of the parent table?"
Or is my thinking flawed here? Am I perhaps looking for the solution in the wrong place (the target tags)? Perhaps my solution would be in modifying the templates...could I modify the template such that when generating code for a parent business entity, instead of saying something like "If my IsParent target tag set to true, then generate code as if I am a parent", to rather say "if there are other business entities that have their Parent target tag set to [me], then generate code as if I am a parent"? Can this be done? Can the target tags of other business entities be queried in a template while generating a given business entity?