예제 #1
0
 class TestRef(Message):
     ref_field = ReferenceField(Test())
     list_test_field = ListField(ReferenceField(Test()))
     list_int_field = ListField(Int64Field())
예제 #2
0
 class TestMessageThree(Message):
     name = StringField()
     ref = ReferenceField(TestMessageOne())
예제 #3
0
 class TestMapRef(Message):
     map_field = MapField(StringField(), ReferenceField(Test()))
예제 #4
0
class CompositeMessage(TestORMMessage):
    ref_field = ReferenceField(SimpleMessage())
    list_test_field = RepeatedField(ReferenceField(SimpleMessage()))
    list_int_field = RepeatedField(Int32Field())
    map_field = MapField(StringField(), ReferenceField(SimpleMessage()))