Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change column name convention in Grails?

For now I have field "String firstName" it converted to "first_name" and i want "firstname" as default in Hibernate. Is it posible?

like image 925
yura Avatar asked Sep 14 '10 13:09

yura


Video Answer


1 Answers

5.5.2.1 Table and Column Names

class Person {
  String firstName
  static mapping = {
      table 'people'
      firstName column:'firstname'
  }
}
like image 183
Aaron Saunders Avatar answered Sep 21 '22 22:09

Aaron Saunders