This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm learning java and now i'm at the chapter with hibernate.
I started by downloading the source and put the jar content in the folder required in my lib directory.
My jar mysql_connector_java is under the directory lib in my lib tomcat folder.
Every jar are added in the java build path
I added the hibernate.cfg.xml file with this
I tried to connect me in console in mysql and it works with: mysql -u root
I created my database gestImmo and a table user.
here i'm the next step, add hibernate mapping file and i have an issue in eclipse (i'm using mac os x lion):
In front of Driver: com.mysql.jdbc.Driver
database URL : jdbc://mysql://localhost/gestImmo
username : root
When i click refresh to see my available tables i've the following error:
this is most likely due to the url not matching the expected value by the jdbc driver. please verify your setting