Grails Hibernate4 upgrade errors on getGeneratedKeys()

余生颓废 提交于 2019-12-04 16:48:48

问题


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.


回答1:


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

hibernate{
    jdbc.use_get_generated_keys = true
}


来源:https://stackoverflow.com/questions/24050291/grails-hibernate4-upgrade-errors-on-getgeneratedkeys

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!