This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Constraint Annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Constraint Annotation" Watch "Constraint Annotation" New topic
Author

Constraint Annotation

Lopez Mirinda
Greenhorn

Joined: Apr 11, 2007
Posts: 11
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

 
 
subject: Constraint Annotation
 
Similar Threads
JSR 303 Custom validation annotation is not firing
Setting Dynamic element values in an Annotation
Custom Bean Validator Not Called
validation problem
JSF2.0 BeanValidation