• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

hibernate dialect in groovy

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic