forked from oasis-tcs/odata-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaggregation.xml
More file actions
158 lines (145 loc) · 6.38 KB
/
aggregation.xml
File metadata and controls
158 lines (145 loc) · 6.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" xmlns="http://docs.oasis-open.org/odata/ns/edm" Version="4.0">
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Aggregation.V1.xml">
<edmx:Include Alias="Aggregation" Namespace="Org.OData.Aggregation.V1" />
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Alias="SalesModel" Namespace="org.example.odata.salesservice">
<EntityType Name="Category">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" />
<NavigationProperty Name="Products" Type="Collection(SalesModel.Product)" />
<Property Name="Name" Type="Edm.String" Nullable="false" />
</EntityType>
<EntityType Name="Currency">
<Key>
<PropertyRef Name="Code" />
</Key>
<Property Name="Code" Type="Edm.String" Nullable="false" />
<Property Name="Name" Type="Edm.String">
<Annotation Term="Core.IsLanguageDependent" />
</Property>
</EntityType>
<EntityType Name="Customer">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" />
<NavigationProperty Name="Sales" Type="Collection(SalesModel.Sales)" />
<Property Name="Name" Type="Edm.String" Nullable="false" />
<Property Name="Country" Type="Edm.String" Nullable="false" />
</EntityType>
<EntityType Name="Product">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" />
<NavigationProperty Name="Category" Type="SalesModel.Category" />
<NavigationProperty Name="Sales" Type="Collection(SalesModel.Sales)" />
<Property Name="Name" Type="Edm.String" Nullable="false" />
<Property Name="Color" Type="Edm.String" Nullable="false" />
<Property Name="TaxRate" Type="Edm.Decimal" Nullable="false" Scale="variable" />
</EntityType>
<EntityType Name="Sales">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" />
<NavigationProperty Name="Customer" Type="SalesModel.Customer" Nullable="false" />
<NavigationProperty Name="Time" Type="SalesModel.Time" Nullable="false" />
<NavigationProperty Name="Product" Type="SalesModel.Product" Nullable="false" />
<NavigationProperty Name="SalesOrganization" Type="SalesModel.SalesOrganization" Nullable="false" />
<NavigationProperty Name="Currency" Type="SalesModel.Currency" Nullable="false" />
<Property Name="Amount" Type="Edm.Decimal" Scale="variable">
<Annotation Term="Aggregation.Aggregateable" />
<Annotation Term="Aggregation.ContextDefiningProperties">
<Collection>
<PropertyPath>Currency/Code</PropertyPath>
</Collection>
</Annotation>
</Property>
<Annotation Term="Aggregation.CustomAggregate" Qualifier="Forecast" String="Edm.Decimal">
<Annotation Term="Aggregation.ContextDefiningProperties">
<Collection>
<PropertyPath>Currency/Code</PropertyPath>
</Collection>
</Annotation>
</Annotation>
</EntityType>
<EntityType Name="SalesOrganization">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" />
<NavigationProperty Name="Superordinate" Type="SalesModel.SalesOrganization" />
<Property Name="Name" Type="Edm.String" Nullable="false" />
</EntityType>
<EntityType Name="Time">
<Key>
<PropertyRef Name="Date" />
</Key>
<Property Name="Date" Type="Edm.Date" />
<Property Name="Month" Type="Edm.String" />
<Property Name="Quarter" Type="Edm.String" />
<Property Name="Year" Type="Edm.String" />
</EntityType>
<Annotations Target="SalesModel.Product">
<Annotation Term="Aggregation.LeveledHierarchy" Qualifier="ProductHierarchy">
<Record>
<PropertyValue Property="Levels">
<Collection>
<String>Category/Name</String>
<String>Name</String>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
<Annotations Target="SalesModel.Time">
<Annotation Term="Aggregation.LeveledHierarchy" Qualifier="TimeHierarchy">
<Record>
<PropertyValue Property="Levels">
<Collection>
<String>Year</String>
<String>Quarter</String>
<String>Month</String>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
<Annotations Target="SalesModel.SalesOrganization">
<Annotation Term="Aggregation.RecursiveHierarchy" Qualifier="SalesOrgHierarchy">
<Record>
<PropertyValue Property="NodeProperty" String="ID" />
<PropertyValue Property="ParentNodeProperty" String="Superordinate/ID" />
</Record>
</Annotation>
</Annotations>
<EntityContainer Name="Default">
<Annotation Term="Aggregation.ApplySupported">
<Record>
<PropertyValue Property="Transformations">
<Collection>
<String>aggregate</String>
<String>groupby</String>
<String>filter</String>
</Collection>
</PropertyValue>
</Record>
</Annotation>
<Annotation Term="Aggregation.CustomAggregate" Qualifier="Budget" String="Edm.Decimal">
<Annotation Term="Aggregation.ContextDefiningProperties">
<Collection>
<PropertyPath>Currencies/Code</PropertyPath>
</Collection>
</Annotation>
</Annotation>
<EntitySet Name="Sales" EntityType="SalesModel.Sales" />
<EntitySet Name="Currencies" EntityType="SalesModel.Currency" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>