You can use a plugin like Eclipse Dali [Eclipse Dali][1] to do the trick for you. You can refer to the [documentation][1], [documentation][2], section 3.11 Generating Entities from Tables.
PS: the plugin does not work with XpertIvy-you need a seperate Eclipse Installation.
[1]: http://www.eclipse.org/webtools/dali/
[2]: http://www.eclipse.org/webtools/dali/docs/dali_user_guide_2.3.pdf