First thing you need to check is that your eclipse version should have the necessary hibernate plugins, switching to galileo might have worked because it might had the necessary hibernate plugins, also secondly you should check the hibernate.cfg.xml file, in that file the user should be set to "root" and the password should be set to your current mysql "password", remember that their is hibernate.cfg.xml in bin folder also, also check if you have installed proper JDBC for mysql database. --Alok Dethe
Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL, ID) values (?, ?, ?, ?). dont get confusion internally hibernate generated hql query for inserting data dynamically. mean like preparedstatement we pass our user input for every Questionmark.same like that dynamically,runtime,user entered input inserted in the place of '?" mean dynamic what u enter that will insert whether input coming from webpage or hotcode mean user passed in main method instead of webpage.