List<EntityDescriptor> entities = new LinkedList<EntityDescriptor>();
List<MappedSuperclassDescriptor> superClasses = new LinkedList<MappedSuperclassDescriptor>();
NodeList list = element.getElementsByTagName("mapping-file");
for (int i = 0; i < list.getLength(); i++)
{
MappingFile mappings = reader.readAll(baseUrl, list.item(i).getTextContent());
entities.addAll(mappings.getEntities());
superClasses.addAll(mappings.getSuperClasses());
}
MappingFile mappings = reader.readDefaultOrm(baseUrl);
entities.addAll(mappings.getEntities());
superClasses.addAll(mappings.getSuperClasses());
DescriptorHierarchyBuilder.newInstance(entities, superClasses).buildHierarchy();
return entities;
}
catch (Exception e)
{