From 88e0ce3cace166e33b2ff5d654cc19b2e26f3846 Mon Sep 17 00:00:00 2001 From: "Sherjan, Haroon" <35983762+haroonsherjan@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:55:46 -0700 Subject: [PATCH] Repackage XmlDataRecord and JsonDataRecord (#2423) --- .../src/main/resources/core/pure/mapping/modelToModel.pure | 4 ++-- .../mongodbStoreLegendJavaPlatformBindingExtension.pure | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/src/main/resources/core/pure/mapping/modelToModel.pure b/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/src/main/resources/core/pure/mapping/modelToModel.pure index f2e97ad2f94..8a670e34456 100644 --- a/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/src/main/resources/core/pure/mapping/modelToModel.pure +++ b/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/src/main/resources/core/pure/mapping/modelToModel.pure @@ -63,7 +63,7 @@ Class meta::external::store::model::JsonModelConnection extends PureModelConnect url : String[1]; } -Class meta::external::store::model::JsonDataRecord +Class meta::pure::mapping::modelToModel::JsonDataRecord { number : Integer[1]; record : String[1]; @@ -75,7 +75,7 @@ Class meta::external::store::model::XmlModelConnection extends PureModelConnecti url : String[1]; } -Class meta::external::store::model::XmlDataRecord +Class meta::pure::mapping::modelToModel::XmlDataRecord { number : Integer[1]; record : String[1]; diff --git a/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-javaPlatformBinding-pure/src/main/resources/core_nonrelational_mongodb_java_platform_binding/mongodbStoreLegendJavaPlatformBindingExtension.pure b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-javaPlatformBinding-pure/src/main/resources/core_nonrelational_mongodb_java_platform_binding/mongodbStoreLegendJavaPlatformBindingExtension.pure index 9a3211907d3..0bde751a8c5 100644 --- a/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-javaPlatformBinding-pure/src/main/resources/core_nonrelational_mongodb_java_platform_binding/mongodbStoreLegendJavaPlatformBindingExtension.pure +++ b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-javaPlatformBinding-pure/src/main/resources/core_nonrelational_mongodb_java_platform_binding/mongodbStoreLegendJavaPlatformBindingExtension.pure @@ -237,7 +237,7 @@ function meta::external::store::mongodb::executionPlan::platformBinding::legendJ let contextWithNodeInfo = $context->addNodeInfo($nodeInfo); let resolvedModel = $node.binding.modelUnit->resolve(); - let updatedTypeInfo = $context.typeInfos->addForClassWithAllProperties(meta::external::store::model::JsonDataRecord) + let updatedTypeInfo = $context.typeInfos->addForClassWithAllProperties(meta::pure::mapping::modelToModel::JsonDataRecord) ->map(ti| if($node.tree->isEmpty(),| $ti->addForClass($class)->addConstraints($class),| $ti->addForGraphFetchTree($node.tree->toOne())->addConstraintsForGraphFetchTree($node.tree->toOne()))); let newTypeInfos = if($externalFormatJavaBindingDescriptor.internalizeDescriptor.internalizePreparator->isNotEmpty(), @@ -390,7 +390,7 @@ function <> meta::external::store::mongodb::executionPlan::platf let sourceRead = $pureClass->readMethodName($conv); let ioEx = j_parameter(javaIOException(), 'e'); let jThis = j_this($proto); - let recordType = $conv->className(meta::external::store::model::JsonDataRecord); + let recordType = $conv->className(meta::pure::mapping::modelToModel::JsonDataRecord); let json = j_variable(javaString(), 'json'); let recordNumber = j_variable(javaLong(), 'recordNumber'); let source = j_variable($recordType, 'source');