History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1049
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Marc Palmer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Regression: min/max constraint on native int type throws exception, works if Integer field

Created: 18/Apr/07 05:18 PM   Updated: 20/Apr/07 10:29 AM
Component/s: Persistence
Affects Version/s: 0.5-RC1
Fix Version/s: 0.5-RC1

Time Tracking:
Not Specified


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.