SqlQuerySpecquery=newSqlQuerySpec("SELECT * FROM c where c.sourceSchemaAuthority = @sourceAuthorityName AND c.sourceEntityType = @sourceEntityType AND "+
"c.sourceSchemaSource = @sourceSchemaSource AND c.sourceSchemaMajorVersion = @sourceSchemaMajorVersion AND c.sourceSchemaKind = @sourceSchemaKind");
SqlQuerySpecquery=newSqlQuerySpec("SELECT * FROM c where c.sourceSchemaAuthority = @authority AND c.sourceEntityType = @entity AND "+
"c.sourceSchemaSource = @source AND c.sourceSchemaMajorVersion = @majorVersion AND c.sourceSchemaKind = @schemaKind");
LOGGER.info("Mapping information successfully fetched from Cosmos Db");
if(mappingsDocList.isEmpty()){
LOGGER.info("Mapping information not found from Cosmos Db for the following parameters - Authority: {}, Source: {}, Entity: {}, MajorVersion: {}",authority,source,entity,majorVersion);
}
else{
LOGGER.info("Mapping information successfully fetched from Cosmos Db for the following parameters - Authority: {}, Source: {}, Entity: {}, MajorVersion: {}",authority,source,entity,majorVersion);
LOGGER.info("Mapping information successfully fetched from Cosmos Db");
SqlQuerySpecquery=newSqlQuerySpec("SELECT * FROM c where c.sourceSchemaAuthority = @sourceAuthorityName AND c.sourceEntityType = @sourceEntityType AND "+
"c.sourceSchemaSource = @sourceSchemaSource AND c.sourceSchemaMajorVersion = @sourceSchemaMajorVersion AND c.sourceSchemaKind = @sourceSchemaKind");
SqlQuerySpecquery=newSqlQuerySpec("SELECT * FROM c where c.sourceSchemaAuthority = @authority AND c.sourceEntityType = @entity AND "+
"c.sourceSchemaSource = @source AND c.sourceSchemaMajorVersion = @majorVersion AND c.sourceSchemaKind = @schemaKind");