Yes thats obsolutely correct, but thats not what my problem is.
My problem is that the sub-entities have relation like the field(FK) of one sub-entity relates to the autogeneratedKey(PK) of another sub-entity and both are "new-entities" and both are to be saved in one save call to genpro.
Forget about the hierarchy depth, what if we want an entitycollection to be saved where the entities relates like the field(FK) of one entity as the autogeneratedKey(PK) of another entity and both are "new-entities" then what shud one do?
Let me explain you with an example.
we have 2 XYZEntities to be saved as collection in one go
Let these be XYZ1Entity and XYZ2Entity.
Now the relation what i need is XYZ2Entity.FK = XYZ1Entity.PK (which is auogenerated when saved)
But then i dont know what "XYZ1Entity.PK" is and so i cannot make the above statement.
So is there anyway genpro does it?