Subversion Repositories SmartDukaan

Rev

Rev 6289 | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Created on 30-Oct-2012

@author: anupam
'''

from elixir.entity import Entity
from elixir.fields import Field
from elixir.options import using_options, using_table_options
from sqlalchemy.types import String, Integer
from shop2020.thriftpy.model.v1.order.ttypes import TelecomCircle as t_TelecomCircle

class TelecomCircle(Entity):
    '''
    classdocs
    '''
    id = Field(Integer, primary_key=True)
    name = Field(String(256))
    code = Field(String(8))
    using_options(shortnames=True)
    using_table_options(mysql_engine="InnoDB")


    def __init__(self):
        '''
        Constructor
        '''
        
    def to_thrift_object(self, ):
        '''
        Copies attributes to thrift object
        '''
        thriftObject = t_TelecomCircle()
        thriftObject.id = self.id
        thriftObject.name = self.name
        thriftObject.code = self.code
        return thriftObject