0
說我在我的父枚舉..如何在grails構造函數中設置合成字段的值?
enum SomeEnum{
//some enums here.
}
然後在我的父類中,我有:
class myParentClass {
SomeEnum someEnum
}
然後我的子類:
class myChildClass {
MyParentClass myParentClass
myChildClass(){
//what to place here?
//I expect.. super.someEnum = SomeEnum.ENUM_HERE but i didnt extend it.. so?
// I tried this.someEnum = SomeEnum.ENUM_HERE but it didn't work either... :(
}
}