Grails Enum Mapping

后端 未结 4 1115
轮回少年
轮回少年 2020-12-24 15:13

in Grails, Is there a way to limit the size of the column to which the enum is mapped. In the following example, i would like the column type to be char(2)

e         


        
4条回答
  •  抹茶落季
    2020-12-24 15:27

    Since GORM 6.1 identity enum mapping can be enabled with such construct

    static mapping = {
       myEnum enumType:"identity"
    }
    

提交回复
热议问题