propMap.put(key, descriptor);
}
}
}
} catch (IntrospectionException ex){
throw new JDOFatalUserException("Error while introspecting class "+clazz.getName(), ex);
}
//iterate over configured properties
Collection descriptorsColl = new Vector();
Iterator fieldsIter = jdoClass.getFields().iterator();
while (fieldsIter.hasNext()){
JDOField jdoField = (JDOField)fieldsIter.next();
String name = jdoField.getName();
//find getter abd setter
PropertyDescriptor descriptor = (PropertyDescriptor)propMap.get(name);
if(descriptor == null){
throw new JDOFatalUserException(I18N.msg("E_unknown_property", name, clazz.getName()));
}
FieldDescriptor fd = new FieldDescriptor(descriptor);
descriptorsColl.add(fd);
}
return descriptorsColl;