<@U8ZKX9SHZ> `Int` and `Integer` is the residue a...
# spring
j
@kruczaj
Int
and
Integer
is the residue after testing @Michael
null
and
9
is the residue after testing does anyone have an idea why I do not create a
Customer
object, how do I enter a wrong value in the field
Int?
if it is in the constructor
Copy code
data class Customer(
        @field:NotNull
        @field:NotBlank
        @field:Size(min = 1, message = "is required")
        var name: String? = null,

        @field:NotNull
        @field:Size(min = 1)
        var lastName: String? = null,

//        @field:Range(min = 1, max = 10, message = "must be between 0 and 10")
//        var freePasses: Int? = null,

        @field:Pattern(regexp = "^[a-zA-Z0-9]{5}")
        var postalCode: String? = null

) {
    @field:Range(min = 1, max = 10, message = "must be between 0 and 10")
    var freePasses: Int? = null


}