Generate HQL pojo classes automatically using hibernate tools

Install the hibernate tools from
http://www.blogger.com/img/blank.gif

Once installed, open the hibernate perspective and then generate a reverse cfg file from the existing (if you have one) or create a new by connecting to the db.

and then create a pakage, go to -> run-> hibernate code generation and create all the required tables and files with or without annotations.

refer:

http://shivasoft.in/blog/sql/myqsl/step-by-step-hibernate-tutorial-using-eclipse-wtp/