Grails3.0.x-3.1.x由hibernate4升级至hibernate5

build.gradle中buildscript下面的hibernate4更换为:

//classpath "org.grails.plugins:hibernate4:5.0.5"
classpath "org.grails.plugins:hibernate5:5.0.5"

依赖更换:

//    compile "org.grails.plugins:hibernate4"
//    compile "org.hibernate:hibernate-ehcache"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.0.Final"
compile "org.hibernate:hibernate-ehcache:5.1.0.Final"

你可能感兴趣的:(Grails3.0.x-3.1.x由hibernate4升级至hibernate5)