【发布时间】:2015-07-26 01:38:34
【问题描述】:
我正在尝试新的 Grails 3 堆栈,但我遇到了 gorm / hibernate 的障碍。我有一个自定义的休眠方言来支持一些数据库功能,但是application.yml 文件中的方言设置似乎被忽略了:
dataSource:
dialect: "our.namespace.Dialect"
pooled: true
jmxExport: false
driverClassName: "org.postgresql.Driver"
username: user
password: password
dbCreate: 'update'
our.namespace.Dialect 似乎从未被实例化,gorm 在尝试创建数据库时抛出以下错误:
ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - HHH000299: Could not complete schema update
org.hibernate.MappingException: No Dialect mapping for JDBC type: 90001
类型 90001 是方言应处理的 JDBC 类型代码之一。
此代码和设置在我从事的 Grails 2.x.y 项目中运行良好。
如何在 Grails 3.0.1 中设置休眠方言?
【问题讨论】:
标签: hibernate grails grails-orm