This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: the field name in the Domain and in the DB table
 
Similar Threads
jaws.xml configuration not loading for cmp entity beans
Insert via Hibernate and Stored Procs
ejbCreate, ejbPostCreate and ejbStore called but no rows are inserted
EJB CMP Primary Key problem
Wher to define table name and DB info