实际上,我将grails2迁移到了grails3。但是域名不能正确地绑定到mysql db表中。例如:
domainName is: EmployeeCompany
expected table name in mysql: employee_company
but its creating as with the name: EmployeeCompany发布于 2016-06-10 12:17:28
尝试在application.yml ( grails 2中的DataSource.groovy)上设置此属性:
hibernate {
naming_strategy = org.hibernate.cfg.ImprovedNamingStrategy
}https://stackoverflow.com/questions/37747262
复制相似问题