Grails

Adding a method containing an 'int' parameter within a domain class throws exception