• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Output for Hibernate client program stuck at Dialect.

 
luke brown
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just ran a very basic program in hibernate to populate my MYSQL database with the hibernate.cfg file configured as.



and hbm file as



and my output is stuck as following:
--------------done-----------
Aug 01, 2014 10:17:58 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
Aug 01, 2014 10:17:58 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
Aug 01, 2014 10:17:59 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/mydb]
Aug 01, 2014 10:17:59 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000046: Connection properties: {user=jay, password=****}
Aug 01, 2014 10:17:59 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000006: Autocommit mode: false
Aug 01, 2014 10:17:59 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
Aug 01, 2014 10:17:59 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect



The program is stuck here and doesnt move further.
is anyone familiar why this is happening.

Regards
Luke
 
Ivan Krasic
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
missing type value in the property mapping ?
the tag <generator> of id is necessary i think...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic