#NEWLINE# @ classmethod #NEWLINE# def insert_data( cls ) : #NEWLINE# #INDENT# Parent = cls . classes . Parent #NEWLINE# Child = s . classes . Child #NEWLINE# s = Session ( ) #NEWLINE# s . add ( Parent ( name = 'parent' , children = [ Child ( name = 'c1' ) ] ) ) #NEWLINE# s . commit ( )