I am specifically looking for JPA code generation technique
First, what are all the project could generate JPA compliant code? (Eg. HibernateTools)
Second, I
I've used Dali Persistence Eclipse Plugin, The tool is available for download via the Indigo Java EE SR1 update site.
After the plugin is installed, to make a reverse engineering of your DB, you need to create a new JPA project, set database connection, launch the automated download of JPA runtime (in my case Eclipse Link), then start the generation process.
During the code generation process you're asked to provide details on table mappings and generated classes. At the end of the generation the code is clean.