Creating entity class using database existing table?
If you use JPA for persistence, you can use "JPA tools" provided by Eclipse to generate java entity class from tables.
Here is the tutorial
You can try the Telosys code generator. It can help for this kind of job.
It allows to generate the Java (POJO) classes from any database with the basic templates and you can also create your own template (a Velocity file) to generate your DAO classes
For more information see http://www.telosys.org
Here is a good tutorial on how to use Eclipse to generate the entity classes from an existing database.