Grails

Grails: Get table name mapped to a domain

Hi guys, Recently while working on a project, I needed to get the table names associated with a particular domain as I needed to perform complex join operations on a particular table. The database that my team was working on was a legacy database. The domains that were created were mapped to particular tables to provide backward...

by Roni C. Thomas
Tag: grails domain mapping
19-Aug-2011

Database, Grails

How to Map database table without id with grails domain

Recently I got a query regarding mapping a database table which do not have any id and version. For example the table have two varchar fields username and password nothing more than that. Although it was something strange for me that table doesn't have the id field. The good thing is that the username is a primary key in the table and...

by Uday Pratap Singh
Tag: grails domain mapping
07-Sep-2010