Skip to content

Commit

Permalink
Avoid direct update of map
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey authored Sep 3, 2024
1 parent 5107c89 commit ad788d1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.finos.legend.engine.protocol.pure.v1.model.packageableElement.store.relational.connection.postprocessor.Mapper;
import org.finos.legend.engine.protocol.pure.v1.model.packageableElement.store.relational.connection.postprocessor.MapperPostProcessor;
import org.finos.legend.engine.protocol.pure.v1.model.packageableElement.store.relational.connection.postprocessor.RelationalMapperPostProcessor;
import org.finos.legend.engine.protocol.pure.v1.model.packageableElement.store.relational.model.Database;
import org.finos.legend.pure.generated.*;

import java.util.List;
Expand Down Expand Up @@ -54,7 +55,10 @@ public static void addDatabaseConnectionProperties(Root_meta_external_store_rela
}
catch (RuntimeException e)
{
context.pureModel.storesIndex.putIfAbsent(element, new Root_meta_relational_metamodel_Database_Impl(element)._name(element));
Database db = new Database();
db.name = element;
db._package = "";
new PackageableElementFirstPassBuilder(context).visit(db);
}
}
}
Expand Down

0 comments on commit ad788d1

Please sign in to comment.