2.7 Entity

The Entity element specifies an entity in the semantic model.

The following are the parent elements, attributes, and child elements of the Entity element.

Parent elements

Entities

Attributes

Entity.ID

Child elements

Entity.CollectionName

Entity.Column

Entity.CustomProperties

Entity.DefaultAggregateAttributes

Entity.DefaultDetailAttributes

Entity.DefaultSecurityFilter

Entity.Description

Entity.DisjointInheritance

Entity.Fields

Entity.Hidden

Entity.IdentifyingAttributes

Entity.Inheritance

Entity.InstanceSelection

Entity.IsLookup

Entity.Name

Entity.SecurityFilters

Entity.SortAttributes

Entity.Table

The following is the XML Schema definition of the Entity element.          

 <xsd:complexType name="EntityType">
   <xsd:all>
     <!-- ModelItemType Start-->
     <xsd:element name="Name" type="NonEmptyString" />
     <xsd:element name="Description" type="xsd:string" minOccurs="0" />
     <xsd:element name="Hidden" type="xsd:boolean" minOccurs="0" />
     <xsd:element name="CustomProperties" type="CustomPropertiesType" 
                  minOccurs="0" />
     <!-- ModelItemType End-->
     <xsd:element name="CollectionName" type="NonEmptyString" minOccurs="0" />
     <xsd:element name="IdentifyingAttributes" type="AttributeReferencesType" />
     <xsd:element name="DefaultDetailAttributes" type="AttributeReferencesType" 
                  minOccurs="0" />
     <xsd:element name="DefaultAggregateAttributes" type="AttributeReferencesType" 
                  minOccurs="0" />
     <xsd:element name="SortAttributes" type="SortAttributesType" minOccurs="0" />
     <xsd:element name="InstanceSelection">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="FilteredList" />
           <xsd:enumeration value="Dropdown" />
           <xsd:enumeration value="List" />
           <xsd:enumeration value="MandatoryFilter" />
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:element>
     <xsd:element name="IsLookup" type="xsd:boolean" minOccurs="0" />
     <xsd:element name="Inheritance" minOccurs="0">
       <xsd:complexType>
         <xsd:all>
           <xsd:element name="InheritsFromEntityID" type="xsd:QName" />
           <xsd:element name="Relation" type="RelationType" minOccurs="0" />
         </xsd:all>
       </xsd:complexType>
     </xsd:element>
     <xsd:element name="DisjointInheritance" type="xsd:boolean" minOccurs="0" />
     <xsd:element name="Fields" type="FieldsType" minOccurs="0" />
     <xsd:element name="SecurityFilters" type="AttributeReferencesType" 
                  minOccurs="0" />
     <xsd:element name="DefaultSecurityFilter" type="DefaultSecurityFilterType" 
                  minOccurs="0" />
     <xsd:element name="Table" type="TableType" minOccurs="0" />
     <xsd:element name="Column" type="ColumnType" minOccurs="0" />
   </xsd:all>
   <xsd:attribute name="ID" type="xsd:QName" use="required" />
 </xsd:complexType>