现在我有字段“String firstName”它转换为“first_name”,我希望“firstname”作为Hibernate中的默认值。有可能吗?
最佳答案
5.5.2.1 Table and Column Names
class Person {
String firstName
static mapping = {
table 'people'
firstName column:'firstname'
}
}
关于groovy - 如何更改 Grails 中的列名称约定?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3709374/