grails « Field « JPA Q&A





1. How to reference a Grails domain class fields from outside of the Grails controller and view?    stackoverflow.com

I have the domain classes:

class Child {
    static hasMany = [ toys : Toy ]
    String name
    Set  toys
}
class Toy {
 ...