1.

How You Can Map Directly A Property Of A Domain Class To An Specific Column In Table Of Your Db?

Answer»

CLASS Person {
String firstName
STATIC MAPPING = {
table 'people'
firstName COLUMN: 'First_Name' ///this is the mapping of the columm in the table
}
}

class Person {
String firstName
static mapping = {
table 'people'
firstName column: 'First_Name' ///this is the mapping of the columm in the table
}
}



Discussion

No Comment Found