File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Constraint Annotation