doc/book/en/B0012-schema-definition.en.txt
changeset 1588 79755c89b4f3
parent 1585 b86448eaed66
parent 1352 9fae16f3e068
child 1598 8f400d5f6742
equal deleted inserted replaced
1587:56e347b8189c 1588:79755c89b4f3
     4 ----------------------
     4 ----------------------
     5 
     5 
     6 An entity type is defined by a Python class which inherits from `EntityType`.
     6 An entity type is defined by a Python class which inherits from `EntityType`.
     7 The class definition contains the description of attributes and relations
     7 The class definition contains the description of attributes and relations
     8 for the defined entity type.
     8 for the defined entity type.
     9 The class name corresponds to the entity type name.
     9 The class name corresponds to the entity type name. It is exepected to be
       
    10 defined in the module ``mycube.schema``.
       
    11 
    10 
    12 
    11 For example ::
    13 For example ::
    12 
    14 
    13   class Person(EntityType):
    15   class Person(EntityType):
    14     """A person with the properties and the relations necessary for my
    16     """A person with the properties and the relations necessary for my