aspose file tools*
The moose likes Object Relational Mapping and the fly likes exception on hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "exception on hibernate" Watch "exception on hibernate" New topic
Author

exception on hibernate

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
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

Joined: Mar 03, 2003
Posts: 35
Assuming that your settings are just the way outlined in the article,
try removing this property


and also ensure you have this property


Lakshmi
Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
Hhi Lakshmi Dasari,
but sorry ,it did NOT work, and i get the same exception..
Lakshmi Dasari
Ranch Hand

Joined: Mar 03, 2003
Posts: 35
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

Joined: Feb 16, 2006
Posts: 290
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
 
 
subject: exception on hibernate