Exemplo n.º 1
0
class DeserializationTestModel(Vertex):
    count = properties.Integer()
    text = properties.Text()

    gremlin_path = 'deserialize.groovy'

    get_maps = gremlin.GremlinValue()
    get_list = gremlin.GremlinMethod()
Exemplo n.º 2
0
class GroovyTestModel2(Vertex):

    element_type = 'groovy_test_model2'

    text = properties.Text()

    get_table_of_models = gremlin.GremlinTable(
        path='groovy_test_model.groovy',
        classmethod=True,
        defaults={'element_type': 'groovy_test_model2'})
Exemplo n.º 3
0
class AliasedTestModel(Vertex):
    name = properties.Text()
    test_val = properties.Integer(db_field='how_many')
Exemplo n.º 4
0
class OtherTestModel(Vertex):
    name = properties.Text(default='test_text')
    test_val = properties.Integer(default=3)
class TaughtBy(Edge):
    overall_mood = properties.Text(default='Grumpy')
class ResearchGroup(Vertex):
    name = properties.Text()
class Course(Vertex):
    name = properties.Text()
    credits = properties.Double()
class Person(Vertex):
    name = properties.Text()
    age = properties.Integer()