Skip to content

Commit

Permalink
bugfix: handle TypeHandler,javaType,jdbcType when generate reduced.xm…
Browse files Browse the repository at this point in the history
…l file
  • Loading branch information
donhui committed Sep 12, 2019
1 parent 7c0f1d7 commit 165faa7
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 165faa7

Please sign in to comment.