【发布时间】:2015-11-12 14:47:11
【问题描述】:
我有这门课:
class SomeClass {
float percent
static constraints = {
percent(min:1.0F, max:100.0F)
}
}
当我启动应用程序时出现错误:
Parameter for constraint [min] of property [percent] of class [class SomeClass] must be the same type as property: [float]
这是一个错误还是我做错了什么?
【问题讨论】:
标签: grails constraints grails-orm