Is there any way i can refer to another class while specifying the rule for a particular class. I am using Bean validation Framework.
Code:<class name="org.something.A"> <property name="firstName"> <expression condition="enumSize.name == org.something.anotherclass.methodName" message="Incorrect value"/> </property> </class>
can someone tell me how i can access another class inside the rule of class A. Is this possible?
Thanks for ur help