aspose file tools*
The moose likes Groovy and the fly likes the field name in the Domain and in the DB table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "the field name in the Domain and in the DB table" Watch "the field name in the Domain and in the DB table" New topic
Author

the field name in the Domain and in the DB table

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

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


Thanks,
Sherif
 
wood burning stoves
 
subject: the field name in the Domain and in the DB table