This recipe shows you how to create a Mondrian 4 cube. Basically, this is the second part, after the physical model. It is responsible for mapping the business side to the physical schema.
Proceed with the following steps:
Let's add the Orders cube to the schema by writing this line:
<Cube name='Orders' defaultMeasure='Total Price'></Cube>
In order to add the Product dimension, it's necessary to write the following lines in the
Cube
tag:<Dimensions> <Dimension name='Product' table='Orders' key='Product Code'> <Attributes> <Attribute name='Name' keyColumn='productName' hasHierarchy='false'/> <Attribute name='Product Code' keyColumn='productCode' hasHierarchy='false'/> </Attributes> <Hierarchies> <Hierarchy name='Product' hasAll='true'> <Level attribute='Name'/>...