Announcement Announcement Module
Collapse
No announcement yet.
JPA Integer Validation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JPA Integer Validation

    Hello to all,

    I am developing a web application that accepts user inputs. I just want to ask if what is the jsr 303 validation/jpa validation for datatype integer? Let's say i don't want to leave the age blank. Please help.

    Thanks.
    Rodel.

  • #2
    Hello

    I just want to ask if what is the jsr 303 validation/jpa validation for datatype integer?
    Have you read the JSR 303 documentation?

    You could consider

    @NotEmpty or @Size(min = 1, max = 14)

    Here some documentation

    Getting started with JSR 303 (Bean Validation) part 1
    Getting started with JSR 303 (Bean Validation) part 2
    bean validation: integrating jsr-303 with spring

    Comment


    • #3
      Thanks for the help.

      Comment

      Working...
      X