hi All,
I am using Apache's BeanUtilsBean.populate(Object employee, Map empMap) to automatically populate my bean. All values in empMap are in
String format. The populate() automatically takes care of the type conversions from String to int, long, boolean when populating the bean. But does not handle Date formats. Is there any way so that BeanUtils automatically takes care of converting string to Date instead of we manually type casting string to date? Any inputs will be very helpful.
Getting this error because of the Date attribute ... "Exception in
thread "main" java.lang.IllegalArgumentException: Cannot invoke Employee.setJoiningDate - argument type mismatch"
Thanks a lot..
regards,
achsu