<s> import elixir , tw2 . sqla <EOL> elixir . session = tw2 . sqla . transactional_session ( ) <EOL> elixir . metadata = elixir . sqlalchemy . MetaData ( '<STR_LIT>' ) <EOL> class Movie ( elixir . Entity ) : <EOL> title = elixir . Field ( elixir . String ) <EOL> director = elixir . Field ( elixir . String ) <EOL> genre = elixir . ManyToMany ( '<STR_LIT>' ) <EOL> cast = elixir . OneToMany ( '<STR_LIT>' ) <EOL> class Genre ( elixir . Entity ) : <EOL> name = elixir . Field ( elixir . String ) <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> class Cast ( elixir . Entity ) : <EOL> movie = elixir . ManyToOne ( Movie ) <EOL> character = elixir . Field ( elixir . String ) <EOL> actor = elixir . Field ( elixir . String ) <EOL> elixir . setup_all ( ) </s>
