This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Constraint Annotation" Watch "Constraint Annotation" New topic
Author

Constraint Annotation

Lopez Mirinda
Greenhorn

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

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Constraint Annotation
 
Similar Threads
Setting Dynamic element values in an Annotation
JSF2.0 BeanValidation
Custom Bean Validator Not Called
validation problem
JSR 303 Custom validation annotation is not firing