Skip to content

Commit b4aad37

Browse files
committed
WIP
1 parent 625ada9 commit b4aad37

File tree

3 files changed

+392
-0
lines changed

3 files changed

+392
-0
lines changed

tests/__snapshots__/Operation/MultiModelTest__test_multi__1.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="com.example.odata">
1111
<EntityContainer Name="DefaultContainer">
1212
<EntitySet Name="Users" EntityType="com.example.odata.User">
13+
<NavigationPropertyBinding Path="orders" Target="Orders"/>
1314
<Annotation Term="Org.OData.Capabilities.V1.CountRestrictions">
1415
<Record>
1516
<PropertyValue Property="Countable" Bool="true"/>
@@ -73,6 +74,7 @@
7374
</EntitySet>
7475
<FunctionImport Name="function1" Function="com.example.odata.function1"/>
7576
<EntitySet Name="Orders" EntityType="com.example.odata.Order">
77+
<NavigationPropertyBinding Path="user" Target="Users"/>
7678
<Annotation Term="Org.OData.Capabilities.V1.CountRestrictions">
7779
<Record>
7880
<PropertyValue Property="Countable" Bool="true"/>
@@ -143,6 +145,7 @@
143145
<Property Name="id" Type="Edm.Int64" Nullable="false">
144146
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
145147
</Property>
148+
<NavigationProperty Name="orders" Type="Collection(com.example.odata.Order)" Nullable="true"/>
146149
</EntityType>
147150
<EntityType Name="Order">
148151
<Key>
@@ -151,6 +154,7 @@
151154
<Property Name="id" Type="Edm.Int64" Nullable="false">
152155
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
153156
</Property>
157+
<NavigationProperty Name="user" Type="com.example.odata.User" Nullable="true"/>
154158
</EntityType>
155159
<Function Name="function1" IsBound="false">
156160
<Parameter Name="param" Type="Edm.String" Nullable="false"/>

tests/__snapshots__/Operation/MultiModelTest__test_multi__3.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"$Kind": "EntityContainer",
2222
"Users": {
2323
"$EntityType": "com.example.odata.User",
24+
"$NavigationPropertyBinding": {
25+
"orders": "Orders"
26+
},
2427
"@Org.OData.Capabilities.V1.CountRestrictions": {
2528
"Countable": true
2629
},
@@ -65,6 +68,9 @@
6568
},
6669
"Orders": {
6770
"$EntityType": "com.example.odata.Order",
71+
"$NavigationPropertyBinding": {
72+
"user": "Users"
73+
},
6874
"@Org.OData.Capabilities.V1.CountRestrictions": {
6975
"Countable": true
7076
},
@@ -154,6 +160,11 @@
154160
"$Type": "Edm.Int64",
155161
"$Nullable": false,
156162
"@Org.OData.Core.V1.Computed": true
163+
},
164+
"orders": {
165+
"$Collection": true,
166+
"$Type": "com.example.odata.Order",
167+
"$Nullable": true
157168
}
158169
},
159170
"Order": {
@@ -165,6 +176,11 @@
165176
"$Type": "Edm.Int64",
166177
"$Nullable": false,
167178
"@Org.OData.Core.V1.Computed": true
179+
},
180+
"user": {
181+
"$Collection": false,
182+
"$Type": "com.example.odata.User",
183+
"$Nullable": true
168184
}
169185
},
170186
"function1": {

0 commit comments

Comments
 (0)