Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception on hibernate

 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
This is the first test on hibernate, so i use
This Link , my Database is mySQL, but i got this exception:

 
Lakshmi Dasari
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that your settings are just the way outlined in the article,
try removing this property


and also ensure you have this property
 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hhi Lakshmi Dasari,
but sorry ,it did NOT work, and i get the same exception..
 
Lakshmi Dasari
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the contents of your hibernate.cfg.xml. You would have got this exception if the session context was "jta" instead of "thread"
 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, this is my hibernate.cfg.xml file:


and this is Honey.hbm.xml file :



and this is the TestExample.java file ,



the remaining files remaining as the same as they are in the URL provided

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic