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

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -