#NEWLINE# @ classmethod #NEWLINE# def insert_data( cls ) : #NEWLINE# #INDENT# ( A , B , C , D ) = ( cls . classes . A , cls . classes . B , cls . classes . C , cls . classes . D ) #NEWLINE# s = Session ( ) #NEWLINE# s . add_all ( [ A ( id = i , bs = [ B ( id = ( ( i * 5 ) + j ) ) for j in range ( 1 , 5 ) ] , c = C ( id = i ) , ds = [ D ( id = ( ( i * 5 ) + j ) ) for j in range ( 1 , 5 ) ] ) for i in range ( 1 , 5 ) ] ) #NEWLINE# s . commit ( )