Grails3 + mysql 不使用骆驼符号创建 table 名称和列名称

Grails3 + mysql not creating table name and column name with camel notation

实际上我将 grails2 迁移到了 grails3。 但域名未与 mysql db table 正确绑定。 例如:

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

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

hibernate { 
    naming_strategy = org.hibernate.cfg.ImprovedNamingStrategy
}