ibatis2mybatis
ibatis2mybatis copied to clipboard
Missing variable replacement translation
Ibatis used to allow type-specified variable replacements as follows:
#varName:DECIMAL#
It looks like only one of these types is translated (VARCHAR).
So #myText:VARCHAR# translates to #{myText,jdbcType=VARCHAR}, but the above example is left untouched.
I wrote a regex pair to to the replacement. Not sure if this helps with XSLT, but here you go: Find: #(\w+):([A-Z]+)#
Replace: #{$1,jdbcType=$2}