You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Lance Shaw <la...@hotmail.com> on 2006/07/11 05:38:58 UTC

Apache Derby with Hibernate3 (more specificly GRAILS)

Hello,

I'm tring to use Derby with GRAILS which uses Hibernate3.  When I try to 
start the application using 'grails run-app' I get the following error:
    
org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: 
Could not determine Hibernate dialect for database name [Apache Derby]!]

Anyone know if there are dialect classes available for Derby to work with 
Hibernate3?



Lance



Re: Apache Derby with Hibernate3 (more specificly GRAILS)

Posted by Lance Shaw <la...@hotmail.com>.
thanks,  adding the hibernate-dialects.properties from the grails jira issue 
seems to have done the trick.



Lance




----Original Message Follows----
From: "Andrew McIntyre" <mc...@gmail.com>
Reply-To: "Derby Discussion" <de...@db.apache.org>
To: "Derby Discussion" <de...@db.apache.org>
Subject: Re: Apache Derby with Hibernate3 (more specificly GRAILS)
Date: Mon, 10 Jul 2006 21:55:31 -0700

On 7/10/06, Lance Shaw <la...@hotmail.com> wrote:
>Hello,
>
>I'm tring to use Derby with GRAILS which uses Hibernate3.  When I try to
>start the application using 'grails run-app' I get the following error:
>
>org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException:
>Could not determine Hibernate dialect for database name [Apache Derby]!]
>
>Anyone know if there are dialect classes available for Derby to work with
>Hibernate3?

Hi Lance,

There is a Hibernate dialect class attached to this Hibernate JIRA issue:

http://opensource.atlassian.com/projects/hibernate/browse/HB-1224

>From the comments there, it appears that the class should be in
Hibernate 3.0. There is also a GRAILS JIRA issue that seems to
correspond to the error you are receiving:

http://jira.codehaus.org/browse/GRAILS-129

which, from the comments there, appears to have been fixed for Grail
.02 on May 31, 2006. So, if you are using GRAILS .01, this is probably
the issue you are hitting. You may want to check with the GRAILS
project to see if this is in fact the issue you are encountering.

cheers,
andrew



Re: Apache Derby with Hibernate3 (more specificly GRAILS)

Posted by Andrew McIntyre <mc...@gmail.com>.
On 7/10/06, Lance Shaw <la...@hotmail.com> wrote:
> Hello,
>
> I'm tring to use Derby with GRAILS which uses Hibernate3.  When I try to
> start the application using 'grails run-app' I get the following error:
>
> org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException:
> Could not determine Hibernate dialect for database name [Apache Derby]!]
>
> Anyone know if there are dialect classes available for Derby to work with
> Hibernate3?

Hi Lance,

There is a Hibernate dialect class attached to this Hibernate JIRA issue:

http://opensource.atlassian.com/projects/hibernate/browse/HB-1224

>From the comments there, it appears that the class should be in
Hibernate 3.0. There is also a GRAILS JIRA issue that seems to
correspond to the error you are receiving:

http://jira.codehaus.org/browse/GRAILS-129

which, from the comments there, appears to have been fixed for Grail
.02 on May 31, 2006. So, if you are using GRAILS .01, this is probably
the issue you are hitting. You may want to check with the GRAILS
project to see if this is in fact the issue you are encountering.

cheers,
andrew

Re: Apache Derby with Hibernate3 (more specificly GRAILS)

Posted by Charlie Kelly <Ch...@CharlieKelly.com>.
Hi Lance,

Derby works well with Hibernate 3.0; I don't have any experience with 
GRAILS.

You'll need a hibernate.properties file (possibly within GRAILS) that 
contains the following statements:

    hibernate.dialect org.hibernate.dialect.DerbyDialect
    hibernate.connection.driver_class org.apache.derby.jdbc.EmbeddedDriver

Charlie

Lance Shaw wrote:

> Hello,
>
> I'm tring to use Derby with GRAILS which uses Hibernate3.  When I try 
> to start the application using 'grails run-app' I get the following 
> error:
>    
> org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: 
> Could not determine Hibernate dialect for database name [Apache Derby]!]
>
> Anyone know if there are dialect classes available for Derby to work 
> with Hibernate3?
>
>
>
> Lance
>
>
>
>
>