}
config.operations.add(target);
}
// table/column
if("column".equals(child.nodeName)) {
ColumnConfig target = new ColumnConfig();
BeanHelper.copyProperties(target, child.attributes,true);
config.columns.add(target);
}
// table/sql
if("sql".equals(child.nodeName)) {
SqlConfig target = new SqlConfig();
BeanHelper.copyProperties(target, child.attributes,true);
target.setSql(getNodeValue(child));
config.addSqlConfig(target);
}
// table/resultmap
if("resultmap".equals(child.nodeName)) {
ResultMapConfig target = new ResultMapConfig();
BeanHelper.copyProperties(target, child.attributes,true);
// table/resultmap/column
for(NodeData c : child.childs) {
if("column".equals(c.nodeName)) {
ColumnConfig column = new ColumnConfig();
BeanHelper.copyProperties(column, c.attributes,true);
target.getColumns().add(column);
}
}
config.resultMaps.add(target);