for (Object ele : document.getRootElement().elements("resultMap")) {
Element element = (Element) ele;
ResultMap resultMap = SqlmappingconfigFactory.eINSTANCE.createResultMap();
resultMap.setId(element.attributeValue("id"));
resultMap.setName(element.attributeValue("name"));
resultMap.setType(element.attributeValue("type"));
for (Object eleNew : element.elements("result")) {
Element resultMappingElement = (Element) eleNew;
Result result = SqlmappingconfigFactory.eINSTANCE.createResult();
result.setColumn(resultMappingElement.attributeValue("column"));
result.setName(resultMappingElement.attributeValue("name"));
result.setJdbcType(resultMappingElement.attributeValue("jdbcType"));
result.setProperty(resultMappingElement.attributeValue("property"));
//result.setSimpleKey(columnMappingElement.attributeValue("property"));
resultMap.getResult().add(result);
//columnMappingMap.put(dataBaseTable.getTableId()+"_"+columnMapping.getColumn(), columnMapping);
}
resultMaps.put(resultMap.getId(), resultMap);
}
for (Object ele : document.getRootElement().elements("insert")) {
Element element = (Element) ele;