class Father(Entity):
    name = Field(Unicode(100))
    children = OneToMany('Child')
class Child(Entity):
    name = Field(Unicode(100))
    father = ManyToOne('Father')
Exemple #3
0
class Child1_4(Entity):
    name = Field(Text)
    parent = ManyToOne('Parent1_4')
class Language(Entity):
    using_options = {'auto_primarykey': False}

    id = Field(Unicode(50), primary_key=True)
    label = Field(Unicode(50))
Exemple #5
0
class Child1_3(Entity):
    name = Field(Text)
    parent = ManyToOne('Parent1_3', inverse='children')
Exemple #6
0
class Parent1_4(Entity):
    name = Field(Text)
    children = OneToMany('Child1_4')
Exemple #7
0
class Parent1_2(Entity):
    name = Field(Text)
    children = OneToMany('Child1_2', inverse='parent')
Exemple #8
0
class Child1_2(Entity):
    name = Field(Text)
Exemple #9
0
class Engine4_4(Entity):
    name = Field(Text)
    car = ManyToOne('Car4_4')
Exemple #10
0
class Car4_4(Entity):
    name = Field(Text)
    engine = OneToOne('Engine4_4')
Exemple #11
0
class Engine4_3(Entity):
    name = Field(Text)
    car = ManyToOne('Car4_3', inverse='engine')
Exemple #12
0
class Car4_3(Entity):
    name = Field(Text)
    engine = OneToOne('Engine4_3', inverse='car')
Exemple #13
0
class Engine4_2(Entity):
    name = Field(Text)