我有一个Grails 2.5.1项目,目前使用的是Hibernate 3.6.10.19,我想将我的hibernate升级到版本5,以便支持MySQL 8连接器(目前我在我的项目中使用MySQL 5连接器)。那么,为了支持MySQL 8连接器,是否可以在Grails 2中使用Hibernate 5,或者是否有替代方案?
现在,我的BuildConfig.groovy文件具有如下依赖关系:
dependencies {
runtime 'mysql:mysql-connector-java:5.1.48'
}
plugins {
runtime ':hibernate:3.6.10.19'
}
发布于 2021-01-22 03:48:34
对于Hibernate 5,你看起来需要在Grails 3上使用GORM 5。
https://grails.io/post/133798408743/announcing-gorm-5-suite
GORM 5提供了Grails 2(不支持Hibernate 5)、Grails 3.x和Spring Boot版本,并支持独立使用。这意味着您选择在GORM支持中开发的任何环境都是可用的。
http://gorm.grails.org/5.0.x/hibernate/manual/index.html
https://stackoverflow.com/questions/65826561
复制相似问题