Example #1
0
class DeserializationTestModel(Vertex):
    count = properties.Integer()
    text = properties.Text()

    gremlin_path = 'deserialize.groovy'

    get_map = gremlin.GremlinValue()
    get_list = gremlin.GremlinMethod()
class TestPEdge(Edge):
    numbers = properties.Integer()
class TestPModel(PaginatedVertex):
    count   = properties.Integer()
    text    = properties.Text(required=False)
Example #4
0
class TestModel(Vertex):
    count   = properties.Integer()
    text    = properties.Text(required=False)
class DefaultModelLevelSaveStrategy(Vertex):
    val = properties.Integer()
class ModelLevelSaveStrategy(Vertex):
    __default_save_strategy__ = properties.SAVE_ONCHANGE
    
    val = properties.Integer()
class AlwaysSaveStrategy(Vertex):
    val = properties.Integer(save_strategy=properties.SAVE_ALWAYS)
class OnChangeSaveStrategy(Vertex):
    val = properties.Integer(save_strategy=properties.SAVE_ONCHANGE)
Example #9
0
class YetAnotherTestEdge(Edge):
    numbers = properties.Integer()
Example #10
0
class AliasedTestModel(Vertex):
    count = properties.Integer(db_field='how_many')
    text = properties.Text()
Example #11
0
class OtherTestModel(Vertex):
    count = properties.Integer()
    text = properties.Text()
Example #12
0
class EnrolledIn(Edge):
    date_enrolled = properties.DateTime()
    enthusiasm = properties.Integer(default=5)  # medium, 1-10, 5 by default
Example #13
0
class Person(Vertex):
    name = properties.Text()
    age = properties.Integer()
class Stuff(Vertex):
    num = properties.Integer()
class WildDBNames(Vertex):
    content = properties.Text(db_field='words_and_whatnot')
    numbers = properties.Integer(db_field='integers_etc')