just a guess: you also need: <property name = "hibernate.dialect">net.sf.hibernate.dialect.MySQLDialect</property> <property name = "hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name = "hibernate.connection.url">jdbc:mysql://localhost/xxx</property> <property name = "hibernate.connection.username">xxx</property> <property name = "hibernate.connection.password">xxx</property>
Joined: Sep 27, 2002
Thank you for the reply but I have included those properties as well.
Hi, hope this will help ... I had tried http://www.onjava.com/lpt/a/4386 online sample, and I got "database product name cannot be null", but I tried to rename my hibernate.properties to hibernate.properties.old, I still got this error message, so I guess maybe hibernate cann't find hibernate.properties. And then I move hibernate.properties to /src/hibernate.properties, and everything is ok. So maybe you should try to put hibernate.properties the right folder. Sorry, I am not advanced user, but I try to help.