Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Constraint Annotation  RSS feed

 
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

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!