getGeneratedKeys()上的Grails Hibernate4升级错误 [英] Grails Hibernate4 upgrade errors on getGeneratedKeys()
本文介绍了getGeneratedKeys()上的Grails Hibernate4升级错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在升级到Grails 2.3.9的Hibernate4:4.3.5.3插件。但是,我收到一个错误:
getGeneratedKeys()支持未启用
>解决方案我刚刚发现您可以在Hibernate {...}块的DataSource.groovy下进行配置
hibernate {
jdbc.use_get_generated_keys = true
}
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.
解决方案I just found that you can configure it under DataSource.groovy in the hibernate{...} block
hibernate{ jdbc.use_get_generated_keys = true }
这篇关于getGeneratedKeys()上的Grails Hibernate4升级错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文