olivier
08-18-2004, 05:19 AM
Hi,
I would like to know simply if it is possible to validate a complex bean with xdoclet and commons validator.
By complex bean, I mean a bean with a property of type List, containing a list of object that need to also be validated.
EX :
class Wallet
public List operations;
public List getOperations;
public void setOperations(List myOperations);
class Operation
public Date date;
public Integer amount;
public Date getDate;
public Integer getAmount;
public void setDate(Date myDate);
public void setAmount(Integer myAmount);
Thanks
Olivier
I would like to know simply if it is possible to validate a complex bean with xdoclet and commons validator.
By complex bean, I mean a bean with a property of type List, containing a list of object that need to also be validated.
EX :
class Wallet
public List operations;
public List getOperations;
public void setOperations(List myOperations);
class Operation
public Date date;
public Integer amount;
public Date getDate;
public Integer getAmount;
public void setDate(Date myDate);
public void setAmount(Integer myAmount);
Thanks
Olivier