-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problems with DerbyDialect.java
PostPosted: Wed Sep 29, 2004 8:15 am 
Newbie

Joined: Wed Sep 29, 2004 5:27 am
Posts: 4
Location: Ingolstadt, Germany
Hibernate version:2.1.6

Name and version of the database you are using: CLoudscape 10.0b


Hi,

I'm rather new to Databases and completely new to hibernate. I tried to follow the guidelines for beginners and encountered a (probably rather small) problem, which I'm sure someone can help me with.

I chose Cloudscape/Derby as database, since it seemed rather promising, downloaded hibernate and I also found the DerbyDialect and DerbyCaseFragment java-files and copied them to the appropriate locations. The "build eg" command, however, does not build successfully, since the DerbyDialect class is not found, the message is as follows:


SettingsFactory:51 - No dialect set - using GenericDialect: Dialect class not found: net.sf.hibernate.dialect.DerbyDialect

and a little later it says again:

net.sf.hibernate.HibernateException: Dialect class not found: net.sf.hibernate.dialect.DerbyDialect



Can anyone tell me what I did wrong? Using HSQLDB, the build was successfull. Thanx in advance,

Jan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 30, 2004 2:53 am 
Newbie

Joined: Wed Sep 29, 2004 5:27 am
Posts: 4
Location: Ingolstadt, Germany
OK, I figured it out myself ... for all those who've got the same problem:

"Simply" (took me a long time :-) ) follow these steps:
1. Download the two java files
2. place DerbyDialect.java in the src\......\dialect folder
3. place the DerbyCaseFragment.java in the src\.....\sql folder
4. in the install dir, run the build.bat
5. you will now have a file ..\hibernate\hibernate2.jar; copy it over installDir\hibernate2.jar
6. run "build eg". The Derby dialect will be found, the tables will now be created, sample data inserted, and some huge SQLException will be raised for a select-statement. I don't know why.

If anyone can tell me why (is it a problem with the DerbyDialect?), a reply is appreciated :-)

Bye,
Jan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 30, 2004 3:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
DerbyDialect is *completely* experimental, and not supported.

My testing leads me to believe that Derby itself is also currently quite far away from useability.


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