Generate JPA 2 Entities from existing Database
You can use a plugin like Eclipse Dali to do the trick for you. You can refer to the documentation, section 3.11 Generating Entities from Tables. I do not know of any specific vendor independent tool to do this, though.