Hi everybody, convertLists change the origin object by replacing pojo<-> form i would like to keep the origin object with forms and get the target to be converted. So i change the convertLists code as :
public static Object convertLists(Object o) throws Exception { if (o == null) { return null; }
for (int i = 0; i < origDescriptors.length; i++) { String name = origDescriptors[i].getName();
if (origDescriptors[i].getPropertyType().equals(List.class)) { List list = (List) PropertyUtils.getProperty(o, name); List b = null; if(list!=null) b = new ArrayList(list.size()); for (int j=0; j < list.size(); j++) { Object origin = list.get(j); // je convertit l'objet dans la liste target = convert(origin);
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .