我已定义了一个架构。我正在重复维度中每个层次结构中相同视图的定义。有没有办法可以为维度而不是维度中的每个层次结构定义视图?
<Schema name="shop_cube">
<Dimension name="Product dimensions">
<Hierarchy name="gtin" hasAll="true" primaryKey="id">
<View alias=""product_dimension"">
<SQL dialect="generic">
<![CDATA[SELECT * FROM product_dimension where name="my_shop"]]>
</SQL>
</View>
<Level name="gtin" column="product_gtin" type="String" hideMemberIf="IfBlankName" uniqueMembers="false">
</Level>
</Hierarchy>
<Hierarchy name="Productgroup" hasAll="true" primaryKey="id">
<View alias=""product_dimension"">
<SQL dialect="generic">
<![CDATA[SELECT * FROM product_dimension where name="my_shop"]]>
</SQL>
</View>
<Level name="Productgroup" column="product_group" type="String" hideMemberIf="IfBlankName" uniqueMembers="false">
</Level>
</Hierarchy>
</Dimension>
...
...
<DimensionUsage name="Product dimensions" source="Product dimensions" foreignKey="product_dimension_id"/>
</Schema>