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


Win a copy of Java 8 in Action this week in the Java 8 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
 
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
ejbCreate, ejbPostCreate and ejbStore called but no rows are inserted
Wher to define table name and DB info
EJB CMP Primary Key problem
jaws.xml configuration not loading for cmp entity beans
Insert via Hibernate and Stored Procs