class Author {
String name
static hasMany = [ books: Book ]
}
it automatically adds a "books" property to the class. This doesn't happen with IntelliJ-compiled classes which means that unit testing domain classes from within IntelliJ is awkward at best. Ideally, JetGroovy should compile Grails domain classes using the Grails compiler: org.codehaus.groovy.grails.compiler.GrailsCompiler.
Description
When Grails compiles a domain class like this:
class Author {
String name
static hasMany = [ books: Book ]
}
it automatically adds a "books" property to the class. This doesn't happen with IntelliJ-compiled classes which means that unit testing domain classes from within IntelliJ is awkward at best. Ideally, JetGroovy should compile Grails domain classes using the Grails compiler: org.codehaus.groovy.grails.compiler.GrailsCompiler.