-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Hibernate tools for eclipse couldn't work in MySQL?
PostPosted: Mon May 02, 2005 1:47 am 
Senior
Senior

Joined: Wed Dec 17, 2003 4:24 am
Posts: 188
3.0.1 product:

No:

No:

Error under artifact generation

Reason:

org.hibernate.console.HibernateConsoleRuntimeException:Problems while loading database driverclass(org.git.mm.mysql.Driver)


MySQL 4.01:

No

INFO:


Hi everyone:

I use Eclipse 3.1 M6 and Hibernate tools.I can generate the hibernate.cfg.xml,But I couldn't generate Mapping file using Artifact generation.
I add mysql-connector-java.jar to project's class path and I add it in Hibernate console. when I setting the artifact generation, this exception happened.

Code:
Error under artifact generation

Reason:

org.hibernate.console.HibernateConsoleRuntimeException:Problems while loading database driverclass(org.git.mm.mysql.Driver


Why? is there any error in my settings? Thks!

_________________
You are not alone...


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 9:07 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
or
your class driver name is incorrect or you can't correct jar file

check double driver class name and have you this class in jjdbc jar

regrads


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 11:26 pm 
Senior
Senior

Joined: Wed Dec 17, 2003 4:24 am
Posts: 188
snpesnpe wrote:
or
your class driver name is incorrect or you can't correct jar file

check double driver class name and have you this class in jjdbc jar

regrads


Thank you . I copy this jar to eclipse/workspace/myproject/bin . And don't have this problem. But there is another exception happend. When I click the finish, it report exception:

Code:
Error under artifact generation

Reason:

org.hibernate.cfg.JDBCBinderException:Foreign key name mapped to different tables!


Why ? What happend? I don't know what meaning of this exception! Help![/code]

_________________
You are not alone...


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 9:16 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
it is strange.Maybe, you have foreign key without name or MySQL accept tow foreign keys with same name

regards


Top
 Profile  
 
 Post subject: check SQL
PostPosted: Tue May 03, 2005 10:53 am 
Regular
Regular

Joined: Mon Apr 25, 2005 9:22 am
Posts: 62
Location: Bucharest/Romania
You can export the db schema as a script and check if there are duplicate names for FKs. Check the mySql documentation for this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.