Is there a way to automatically create javax.persistence.Entity classes from an existing database (or from the SQL statements that created them)?
I am just reading through the persistence part of The Java EE 5 Tutorial and creating all these annotations by hand seems rather wasteful considering that all (or most) of the necessary knowledge is already encoded in the database or even explicitly given in the form of SQL statements.