faireni wrote:
i have create a hibernate project using eclipse wtp. i have written the model file and also mapping files as well. i have created the database manually in mysql server. i used syntax 'grant all on symis.* to 'user@127.0.0.1'. what else should i do to map the tables inti database?? thanx.
Hi faireni,
First Please check which MYSQL server version you are using. I think Hibernate Community supports the below versions
MySQL 3.23, 4.0, 4.1, 5.0.
Fine. If you have a correct version then No problem.
Pls check your Database table colunm name and mapping file(*.hbm.xml file) column name should be same.
and pls check this code for mysql server
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost/tm4j-test
localhost : your host name
tm4-test : db name
try to put all jar file(mysql supported) in lib file
Thanks. All the best