File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Languages » Groovy
Reply 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: 472

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