I\'m having trouble selecting items from a list of domain objects based on a value in an enum list. My domain object looks like this:
I get the following Exception when saving an instance of Trip in Grails: 2011-01-26 22:37:42,801 [http-8090-5]
Let\'s say you have face and nose, and you want to get the nose based on a faceId. The Grails 开发者_运维技巧user guide tells you how to use mapping = { fetch:join } in a domain class to eagerly fetc
I am developing a web based application in Grails. I have come across a situation where I would like to try and suppress GORM from creating a foreign key constraint on a field in a table.
I have a Contact class that belongs to a Subscription and I want to set a hypothetic readonly constraint on the subscription property, to be consumed in the scaffold templates.
Is is possible to do automatic rel开发者_JAVA技巧ation fetching in GORM / Grails? class Person { static hasMany = [cars : Car]
I have two domain-classes.One is a \"Partner\" the other is a \"Customer\".A customer can be a part of a Partner and a Partner can have 1 or more Customers:
In section 5.5.2.5 of the grails document it says GORM supports the concept of composite identifiers (identifiers composed from
What is the best way to query for something without using GORM in grails? I have query that doesn\'t seem to fit in the GORM model, the query has a subquery and a computed fiel开发者_Python百科d.I po
I am trying to query the following HQL using GORM: MailMessage.executeQuery(\"toId, count(toId) from (SELECTtoId, threadId FROM MailMessage as m WHERE receiveStatus = \'u\' GROUP BY threadId, toId) a