• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

extending @notNull annotation

 
Jacob Sonia
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to extend NotNull for additional fieldName so that i could extract the field and have all messages as one custom message for all required fields. I am doing this:


How can i use isValid implementation of NotNull.
I am getting error that the default message is not defined. Will i have to redefine everything
 
Knute Snortum
Bartender
Pie
Posts: 2908
62
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give us the exact error message and the line of code causing the error?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic