private void doSubtypes(DerivedAttribute2 attribute) { for (EntityDefinition entityDefinition : subtypes) { entityDefinition.addDerived( new DerivedAttribute2( attribute.getName(), attribute.getType(), attribute.getExpressCode(), attribute.isCollection(), true), false); entityDefinition.doSubtypes(attribute); } }