What I did is: - right click the project - New - Entity Classes From database... - Database Tables - New Database Connection - I chose mysql - then i entered the database name and link and user and password - Next - Finish - Here it will retrieve the tables from my Database
I followed the following link ref link it really helped me