java - javax validation not validating complex object attributes -


i trying validate class using javax.validation.validator. below doing.

final set<constraintviolation<paymentdetailsform>> set = validator.validate(accountpaymentdetailsform); 

my paymentdetailform looks this

public class paymentdetailsform {     private string paymentid;     private string cardtypecode;     private boolean newbillingaddress;     private addressform billingaddress;     private string securitycode; 

when submitting form validating paymentid,cardtypecode, etc. not validating billingaddress form inside paymentdetailsform.

do need give anotation on getbillingaddress() method?


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -