I have an object Foo with a hasMany association to a Bar object class Foo { String value static hasMany = [
I\'d like to eager load a structure, two levels deep in an association chain. Something along the lines of:
I\'m trying to set default sort of my hasMany attribute using mapping statement. I\'m following the grails doc but it doesn\'t work for me (grails 1.3.5). My code looks like:
Here\'s my situation: From my Grails controller, I call a service, which que开发者_JAVA百科ries a database read-only, transforms the result into JSON, and returns the result.
I have a set of domain objects that are related like this: class Book { static belongsTo = [author: Author]
I\'m developing a small application on Grails 1.3.5 and I run into this very strange problem. My domain classes feature some boolean typed fields. None of these fields is persisted when creating a ne
I have a domain object called User: class User{ String username; String firstName; String lastName; Zipcode zip;
I have a grails project with a class that I can delete no problem when doing it \"manually\" from the controller. I use the following code.
I am porting a Grails application from Oracle to MySQL database. The original Oracle version is a legacy database which uses a few complex Views leveraging Oracle\'s INSTEAD OF INSERT OR UPDATE featur
I am using Nimble and Shiro for my security frameworks and I\'ve just come accross a GORM bug. Indeed :