Reason for the exception is because your property ‘level’ is declared as int and equivalent column type is tynint while column type for Java int (or Integer) should be integer. Column type tinyint is too short to accept larger integre values. If you change type of property level to Java byte, validation will work pass. |