mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
CE-1955 - only handle a single level deep of associations...
This commit is contained in:
@ -123,8 +123,18 @@ public class BulkLoadTableStructureBuilder
|
|||||||
|
|
||||||
for(Association childAssociation : CollectionUtils.nonNullList(table.getAssociations()))
|
for(Association childAssociation : CollectionUtils.nonNullList(table.getAssociations()))
|
||||||
{
|
{
|
||||||
BulkLoadTableStructure associatedStructure = buildTableStructure(childAssociation.getAssociatedTableName(), childAssociation, parentAssociationPath);
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
tableStructure.addAssociation(associatedStructure);
|
// at this time, we are not prepared to handle 3-level deep associations, so, only process them from the top level... //
|
||||||
|
// main challenge being, wide-mode. so, maybe we should just only support 3-level+ associations for tall? //
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
if(association == null)
|
||||||
|
{
|
||||||
|
String nextLevelPath =
|
||||||
|
(StringUtils.hasContent(parentAssociationPath) ? parentAssociationPath + "." : "")
|
||||||
|
+ (association != null ? association.getName() : "");
|
||||||
|
BulkLoadTableStructure associatedStructure = buildTableStructure(childAssociation.getAssociatedTableName(), childAssociation, nextLevelPath);
|
||||||
|
tableStructure.addAssociation(associatedStructure);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (tableStructure);
|
return (tableStructure);
|
||||||
|
Reference in New Issue
Block a user