The incremental database reverse engineering (DBRE) add-on allows you to create an application tier of JPA 2.0 entities based on the tables in your database. DBRE will also incrementally maintain your application tier if you add or remove tables and columns.
M. Granitzer, W. Kienreich, V. Sabol, and G. Dosinger. Proc. Twelfth IEEE International Workshops on Enabling Technologies:
Infrastructure for Collaborative Enterprises WET ICE 2003, page 296--301. (2003)
P. Valtchev, and R. Missaoui. Proceedings of the 9th International Conference on Conceptual Structures (ICCS 2001), volume 2120 of Lecture Notes in Computer Science, page 290-303. Springer, (2001)
R. Salustowicz, and J. Schmidhuber. Proceedings of the Fifteenth International Conference
on Machine Learning, ICML'98, page 488--496. Madison, Wisconsin, USA, Morgan Kaufmann, (July 1998)
R. Salustowicz, and J. Schmidhuber. Machine Learning: ECML-97, volume 1224 of Lecture Notes in Artificial Intelligence, page 213--220. Springer-Verlag, (1997)