Add multiple files (one per table) code generation

TODO : write a proper (and relevant) junit test.
can we re-use the docWithCode method instead of creating a new one?