class Father(Entity):
    name = Field(Unicode(100))
    children = OneToMany('Child')
class Child(Entity):
    name = Field(Unicode(100))
    father = ManyToOne('Father')
Beispiel #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))
Beispiel #5
0
class Child1_3(Entity):
    name = Field(Text)
    parent = ManyToOne('Parent1_3', inverse='children')
Beispiel #6
0
class Parent1_4(Entity):
    name = Field(Text)
    children = OneToMany('Child1_4')
Beispiel #7
0
class Parent1_2(Entity):
    name = Field(Text)
    children = OneToMany('Child1_2', inverse='parent')
Beispiel #8
0
class Child1_2(Entity):
    name = Field(Text)
Beispiel #9
0
class Engine4_4(Entity):
    name = Field(Text)
    car = ManyToOne('Car4_4')
Beispiel #10
0
class Car4_4(Entity):
    name = Field(Text)
    engine = OneToOne('Engine4_4')
Beispiel #11
0
class Engine4_3(Entity):
    name = Field(Text)
    car = ManyToOne('Car4_3', inverse='engine')
Beispiel #12
0
class Car4_3(Entity):
    name = Field(Text)
    engine = OneToOne('Engine4_3', inverse='car')
Beispiel #13
0
class Engine4_2(Entity):
    name = Field(Text)