I have a simple ticket logging application build on LAMP.
I am currently playing around with grails. I want to build a demo app that uses the existing MySql database without changing the database too much.
There is a many-to-many relationship in the database: ‘client’ table is mapped to the ‘user’ table through the ‘cliet_contact’ table (i.e. not the standard ‘client_user’ convention).
How would I translate this into grails domain classes using grail 1.1?
Any help would be appreciated.
Thanks!
You can use the joinTable keyword in your mapping to specify the table name. Here’s the example from that page: