Exception thrown applying constraint [min] to class [class SiteVisitor] for value [0]: Parameter for constraint [max] of property [totalVisits] of class [class SiteVisitor] must be the same type as property: [int]
The code in question:
class SiteVisitor {
...
int totalVisits
...
static constraints = {
totalVisits(min:0)
...
}
}
Workaround is to change type to Integer but this is a regression from 0.4.2 where this code worked perfectly, and should continue to do so
Description
Exception thrown applying constraint [min] to class [class SiteVisitor] for value [0]: Parameter for constraint [max] of property [totalVisits] of class [class SiteVisitor] must be the same type as property: [int]
The code in question:
class SiteVisitor {
...
int totalVisits
...
static constraints = {
totalVisits(min:0)
...
}
}
Workaround is to change type to Integer but this is a regression from 0.4.2 where this code worked perfectly, and should continue to do so