here are all the basic jar file required for the hibernate program and mysql connection driver with the xml file of hibernate configuration
put all the jar file in your project lib folder
put the hibernate.cfg.xml file in src folder . this hibernate.cfg.xml file is configured with mysql data bases which create the db if not present and the mysql usernaem and password is root check and do the changes as per your system