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)
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)
class YetAnotherTestEdge(Edge): numbers = properties.Integer()
class AliasedTestModel(Vertex): count = properties.Integer(db_field='how_many') text = properties.Text()
class OtherTestModel(Vertex): count = properties.Integer() text = properties.Text()
class EnrolledIn(Edge): date_enrolled = properties.DateTime() enthusiasm = properties.Integer(default=5) # medium, 1-10, 5 by default
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')