0

实际上,我将 grails2 迁移到了 grails3。但是域名没有与 mysql db 表正确绑定。例如:

domainName is: EmployeeCompany
expected table name in mysql: employee_company
but its creating as with the name: EmployeeCompany
4

1 回答 1

1

尝试在 application.yml 上设置此属性(grails 2 中的 DataSource.groovy):

hibernate { 
    naming_strategy = org.hibernate.cfg.ImprovedNamingStrategy
}
于 2016-06-10T12:17:28.627 回答