-->
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.  [ 10 posts ] 
Author Message
 Post subject: Help me! how to make console configuration?
PostPosted: Thu Jun 09, 2005 2:01 am 
Newbie

Joined: Thu Jun 09, 2005 1:42 am
Posts: 6
Hi, guys, please give me some advices.

I'm using Eclipse3.1, Hibernate3.0, Hibernate plugin for Eclipse, and mysql as db.

The plugin can generate hibernate.cfg.xml, but the console configuration cannot find the jdbc dirver , and add... GUI only shows directory bin and src instead of lib where the jar is. furthermore, the artifact generator cannot generate any .java or .hbm.xml files. the error looks like
"org.hibernate.console.HibernateConsoleRuntimeException:Problems while loading database driverclass (org.gjt.mm.mysql.Driver)"
I did not know how to deal with it.


I'm new with hibernate. I thought the artifact generator can help to generate codes from my db. I wonder if it can. I read some articles saying the console configuration is to do some query in Eclipse. then, how to utilize the tools to generate the POJO files and .hbm.xml files from my schema?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 3:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you need to add the jdbc driver *jar* to the classpath.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 4:26 am 
Newbie

Joined: Thu Jun 09, 2005 1:42 am
Posts: 6
thanks, but how to add it, max

I'm always puzzled with the differences between classpath and buildpath, and how to define them.

The problem is killing me. My God! anyway , it will benefit a lot if solved.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 4:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Go to the console configuration and add it

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 4:49 am 
Newbie

Joined: Thu Jun 09, 2005 1:42 am
Posts: 6
but i just cannot add anything when i click the classpath add button,
it offers some directories but empty.
i wonder if there's anything else to be configured to make the classpath adding valid?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 5:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
well if it is not in there then its because your .jar is not in the project.

have you tried the latest version ? here you can add an external jar.

-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 5:34 am 
Newbie

Joined: Thu Jun 09, 2005 1:42 am
Posts: 6
yeah,it sounds good.i'll try.
god bless me. i'm downloading it.
thank you, max, for your help & patience.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 6:07 am 
Newbie

Joined: Thu Jun 09, 2005 1:42 am
Posts: 6
it works well...
and it generates GeneralHbmSetting.hbm.xml file and no pojo files or other .hbm.xml files.

puzzled


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 6:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so no tables are in the chosen table space

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 11:43 am 
Newbie

Joined: Thu Jun 09, 2005 1:42 am
Posts: 6
thank max
now the problem's solved
the plugin behaves pretty well
it generate the codes i want
^_^


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 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.