#NEWLINE# @ classmethod #NEWLINE# def setup_mappers( cls ) : #NEWLINE# #INDENT# ( Parent , Base1 , Base2 , Sub1 , Sub2 , EP1 , EP2 ) = cls . _classes ( ) #NEWLINE# mapper ( Parent , cls . tables . parent , properties = { #NEWLINE# #INDENT# 'sub1' : relationship ( Sub1 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# mapper ( Base1 , cls . tables . base1 , properties = { #NEWLINE# #INDENT# 'sub2' : relationship ( Sub2 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# mapper ( Sub1 , cls . tables . sub1 , inherits = Base1 ) #NEWLINE# mapper ( Base2 , cls . tables . base2 , properties = { #NEWLINE# #INDENT# 'ep1' : relationship ( EP1 ) , #NEWLINE# 'ep2' : relationship ( EP2 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# mapper ( Sub2 , cls . tables . sub2 , inherits = Base2 ) #NEWLINE# mapper ( EP1 , cls . tables . ep1 ) #NEWLINE# mapper ( EP2 , cls . tables . ep2 )