class TestEnumVertexModel(with_metaclass(EnumVertexBaseMeta, Vertex)): __enum_id_only__ = False name = properties.String(default='test text') test_val = properties.Integer(default=0) def enum_generator(self): return '%s_%s' % (self.name.replace(' ', '_').upper(), self.test_val)
class GroovyTestModel2(Vertex): element_type = 'groovy_test_model2' text = properties.String() get_table_of_models = gremlin.GremlinTable( path='groovy_test_model.groovy', classmethod=True, defaults={'element_type': 'groovy_test_model2'})
class TestEnumVertexModel2(with_metaclass(EnumVertexBaseMeta, Vertex)): name = properties.String(default='test text') test_val = properties.Integer(default=0)
class TestVertexModel2(Vertex): name = properties.String(default='test_text') test_val = properties.Integer()
class Course(Vertex): name = properties.String() credits = properties.Double()
class BlueprintsWrapperVertex(Vertex): element_type = 'blueprints_wrapper_vertex' name = properties.String(required=True, max_length=128)
class BlueprintsWrapperEdge(Edge): element_type = 'blueprints_wrapper_edge' name = properties.String(required=True, max_length=128)
class Person(Vertex): name = properties.String() email = properties.Email() url = properties.URL() works_for = Relationship(WorksFor, Organization) member_of = Relationship(MemberOf, Department)
class BadNames(Vertex): words = properties.String() content = properties.String(db_field='words')
class BaseAbstractVertex(Vertex): __abstract__ = True data = properties.String()
class WildDBNames(Vertex): name = properties.String(db_field="words_and_whatnot") test_val = properties.Integer(db_field="integers_etc")
class TaughtBy(Edge): overall_mood = properties.String(default='Grumpy')
class ResearchGroup(Vertex): name = properties.String()
class Organization(Vertex): name = properties.String() email = properties.Email() url = properties.URL()
class TestFactoryVertex(Vertex): element_type = 'test_factory_vertex' name = properties.String(required=True, max_length=128)
class Department(Vertex): name = properties.String() email = properties.Email() url = properties.URL() belongs_to = Relationship(BelongsTo, Organization)
class TestFactoryEdge(Edge): label = 'test_factory_edge' name = properties.String(required=True, max_length=128)
def string(): return properties.String()
class Person(Vertex): name = properties.String() age = properties.Integer()