• Post Reply Bookmark Topic Watch Topic
  • New Topic

extending @notNull annotation  RSS feed

 
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
Sheriff
Posts: 4194
122
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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!