Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 898
Brandon Wagner Avatar asked Jun 05 '14 01:06

Brandon Wagner


1 Answers

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

hibernate{
    jdbc.use_get_generated_keys = true
}
like image 110
Brandon Wagner Avatar answered Nov 06 '22 22:11

Brandon Wagner