Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update model joins #798

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 32 additions & 8 deletions showcases/data/End To End Examples/Integrate Mappings/code.pure
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Mapping com::entity::LegalEntityMapping

Mapping com::trade::TradeWithLegalEntityMapping
(
include dataspace com::entity::EntityDataspace
include dataspace com::entity::EntityDataSpace

com::trade::Trade[trade]: Relational
{
Expand All @@ -87,14 +87,19 @@ Mapping com::trade::TradeWithLegalEntityMapping


###DataSpace
DataSpace com::entity::EntityDataspace
DataSpace com::entity::EntityDataSpace
{
executionContexts:
[
{
name: 'default';
mapping: com::entity::LegalEntityMapping;
defaultRuntime: com::entity::EntityRuntime;
testData:
Reference
#{
com::entity::EntityData
}#;
}
];
defaultExecutionContext: 'default';
Expand Down Expand Up @@ -155,6 +160,28 @@ Runtime com::trade::TradeRuntime
];
}

SingleConnectionRuntime com::trade::AlternativeTradeRuntime
{
mappings:
[
com::trade::TradeWithLegalEntityMapping
];
connection: com::trade::TradeConnection;
}


###Data
Data com::entity::EntityData
{
Relational
#{
Entity.LegalEntity:
'ENTITY_ID,name\n'+
'abc,Entity1\n'+
'def,Entity2\n';
}#
}


###Service
Service com::trade::ServiceSimpleProject
Expand Down Expand Up @@ -199,12 +226,9 @@ Service com::trade::ServiceSimpleProject
'2,200,def\n';
}#,
com::trade::TradeConnection:
Relational
DataspaceTestData
#{
Entity.LegalEntity:
'ENTITY_ID,name\n'+
'abc,Entity1\n'+
'def,Entity2\n';
com::entity::EntityDataSpace
}#
]
]
Expand All @@ -230,4 +254,4 @@ Service com::trade::ServiceSimpleProject
]
}
]
}
}
Loading