wood burning stoves*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 477

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
 
jQuery in Action, 2nd edition
 
subject: the field name in the Domain and in the DB table
 
Similar Threads
jaws.xml configuration not loading for cmp entity beans
EJB CMP Primary Key problem
ejbCreate, ejbPostCreate and ejbStore called but no rows are inserted
Insert via Hibernate and Stored Procs
Wher to define table name and DB info