Generate HQL pojo classes automatically using hibernate tools

Install the hibernate tools from

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.