Grails Hibernate4 upgrade errors on getGeneratedKeys()

前端 未结 1 563
梦谈多话
梦谈多话 2021-02-13 07:01

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

1条回答
  •  感动是毒
    2021-02-13 07:43

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

    hibernate{
        jdbc.use_get_generated_keys = true
    }
    

    0 讨论(0)
提交回复
热议问题