This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Groovy and the fly likes hibernate dialect in groovy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "hibernate dialect in groovy" Watch "hibernate dialect in groovy" New topic
Author

hibernate dialect in groovy

Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 230
Hi

Our DB recently migrated from Oracle10g to 11g. Our application is a groovy/grails application deployed in tcServer. This app was working without a dialect declaration in Oracle10g.

But now we get
===
org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [Oracle]!
at java.security.AccessController.doPrivileged(Native Method)
===

I added dialect='org.hibernate.dialect.Oracle10gDialect' to datasource.groovy to make the app work. But this means I will have to redeploy the application and we have lot of grails applications all now pointing to 11g database.

Is there a easy way to mention this dialect configuration somewhere else, like wrapper.conf, which will just need a tcServer restart and not an app deploy?

I tried
===
wrapper.java.additional.16="-Dhibernate.dialect=org.hibernate.dialect.Oracle10gDialect"
===

but this didnt work. Please help.

Thanks!
Mani


Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: hibernate dialect in groovy
 
Similar Threads
What can I access from /grails-app/src/java (and /grails-app/src/groovy)
Switching[restarting] Database forces to restart application
why should one count on groovy and grails rather than java
Working with legacy database - a challenge in Groovy
Is Groovy just a syntax suger