• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Constraint Annotation

 
Lopez Mirinda
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a NotNull annotation defined here which uses the javax.validation.Constraint.



a1.annotationType().isAnnotationPresent(javax.validation.Constraint.class) returns false though it is present.
a1.annotationType().isAnnotationPresent(javax.validation.Constraint.class) returns true

Is it possible to get hold of @Constraint and the value of validatedBy?

Thanks in Advance,
Tanuja

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic