1

I have some Domain classes inheriting from a base class. However when I generate the scaffolding, the view does not contain any elements of the base class.

The behaviour is the same regardless of table per hierarchy (default), or table per subclass.

Is this a bug or am I doing something wrong?

4

1 回答 1

1

下面的代码适用于我的动态和静态脚手架:

包 p

class Person {
    String toString() { name
    }
    static constraints={
        name(blank:false,unique:true)
    }
    String name
}

package p

class Vip extends Person {
    static constraints={
        money(min:1000)
    }
    int money
}
于 2010-09-15T01:07:12.960 回答