Skip to content

Commit

Permalink
Merge pull request #15 from donhui/bugfix
Browse files Browse the repository at this point in the history
bugfix: handle TypeHandler,javaType,jdbcType when generate reduced.xml file
  • Loading branch information
donhui authored Sep 12, 2019
2 parents 7c0f1d7 + 165faa7 commit 3a4305c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ private void handleMapperElement(Document document){
}
}
}
// handle TypeHandler,javaType,jdbcType
String text = element.getText();
text = text.replaceAll(",[\\s]*typeHandler=[.*A-Za-z0-9_=,]*}","}");
text = text.replaceAll(",[\\s]*javaType=[.A-Za-z0-9_=,]*}","}");
text = text.replaceAll(",[\\s]*jdbcType=[.A-Za-z0-9_=,]*}","}");
element.setText(text);
}

// handle `test` attribute of `if` or `when` element
Expand Down

0 comments on commit 3a4305c

Please sign in to comment.