Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the field name in the Domain and in the DB table

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
i'm new to Grails and i have 2 questions :

First : i have a variable named : firstName in the domain , i want to make the column mapped to it in the DB table name to be "user_FirstName" and vise verse , is that possible ?

Second : in the view , which filed name will appears the field name in the domain or the column name in the DB ?

appreciate your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic