class DeserializationTestModel(Vertex): count = properties.Integer() text = properties.Text() gremlin_path = 'deserialize.groovy' get_map = gremlin.GremlinValue() get_list = gremlin.GremlinMethod()
class GroovyTestModel(Vertex): text = properties.Text() get_self = gremlin.GremlinMethod() cm_get_self = gremlin.GremlinMethod(method_name='get_self', classmethod=True) return_default = gremlin.GremlinValue(method_name='return_value', defaults={'val': lambda: 5000}) return_list = gremlin.GremlinValue(property=1) return_value = gremlin.GremlinValue() arg_test1 = gremlin.GremlinValue() arg_test2 = gremlin.GremlinValue()
class TestPModel(PaginatedVertex): count = properties.Integer() text = properties.Text(required=False)
class TestModel(Vertex): count = properties.Integer() text = properties.Text(required=False)
class DBFieldEdge(Edge): text = properties.Text(db_field='edge_text')
class DBFieldVertex(Vertex): text = properties.Text(db_field='vertex_text')
class TestIndexCreationCallTestVertex2(Vertex): col1 = properties.Text() col2 = properties.Text(db_field='____column')
class TestIndexCreationCallTestVertex(Vertex): col1 = properties.Text(index=True) col2 = properties.Text(index=True, db_field='____column') col3 = properties.Text(db_field='____column3')
class AliasedTestModel(Vertex): count = properties.Integer(db_field='how_many') text = properties.Text()
class OtherTestModel(Vertex): count = properties.Integer() text = properties.Text()
class TaughtBy(Edge): overall_mood = properties.Text(default='Grumpy')
class Course(Vertex): name = properties.Text() credits = properties.Decimal()
class Person(Vertex): name = properties.Text() age = properties.Integer()
class BadNames(Vertex): words = properties.Text() content = properties.Text(db_field='words')
class WildDBNames(Vertex): content = properties.Text(db_field='words_and_whatnot') numbers = properties.Integer(db_field='integers_etc')