EntityGroupLocation entityGroupLocation = null;
for (DMLAction dmlAction : dmlActions) {
if(entityGroupLocation == null) {
entityGroupLocation = dmlAction.getEntityGroupLocation();
} else {
if(entityGroupLocation.compareTo(dmlAction.getEntityGroupLocation()) != 0) {
throw new TransactionParseException("child table row must be the same entityGoup with parent row. it means value of egk row must be same");
}
}
}
transactionAction.setEntityGroupLocation(entityGroupLocation);