The following Groovy code creates a GORM-persisted domain class called Foo when written to grails-app/domain/Foo.groovy:
class Foo {
String someField
}
However, if I instead write "public class Foo" the class does NOT get GORM-persisted (i.e. no save() method injected, no database table created, etc.):
public class Foo {
String someField
}
I'm running the latest stable release of Grails (1.1).
Question: Is this a bug or is it the expected behaviour? Why?
Update #1: Related sub-question: Am I the only one hitting this problem? It would be nice to know if anyone else is able to replicate this. Thanks!