Grails Hibernate4 upgrade errors on getGeneratedKeys()

前端 未结 1 1691
粉色の甜心
粉色の甜心 2021-02-13 07:39

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 08:01

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

    hibernate{
        jdbc.use_get_generated_keys = true
    }
    

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