That's OK, but I would still like to do it the other way. Where the code is generated from the DB. Might just be my mindset but I prefer to work in the DB tool and then layer the application on top.
This will be one of the big topics for us for the next months. We are planning to add type macros to Scala (in addition to the def macros that are already available as an experimental feature in the 2.10 milestones) and use them to generate types representing database schemas directly from the database. The idea is to have the compiler connect to a live database during development and a way to freeze the generated types at some point in the form of standalone Scala source which does not need a database any more for compilation.