equal
deleted
inserted
replaced
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 |