Search code examples
grailsgrails-ormhibernate-4.x

Grails Hibernate4 upgrade errors on getGeneratedKeys()


I'm upgrading to the Hibernate4:4.3.5.3 plugin for Grails 2.3.9 . However, I'm getting an error:

getGeneratedKeys() support is not enabled

I haven't been able to find any configuration details on how to enable this.


Solution

  • I just found that you can configure it under DataSource.groovy in the hibernate{...} block

    hibernate{
        jdbc.use_get_generated_keys = true
    }