Salto-db Generator can generate code from a database structure.
Historically it has been developped to generate dataobjects for the Salto persitence mechanism (aka saltodb), but now it can generate anything thanks to plugins.
Salto-db Generator connects to a database thanks to jdbc, parses the tables structures and executes a plugin. A plugin can do anything with the tables structures. Built-in plugins generate java code to access data with different ORMs from a java application. Have a look at the different plugins descriptions for more informations.
Salto-db Generator can be run from Ant or as an Eclipse plugin.
Latest version is v1.0.16