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