mybatis / generator

A code generator for MyBatis.
http://www.mybatis.org/generator/
5.28k stars 2.52k forks source link

mysql text to String #1211

Closed kaixinwangzi1982 closed 2 months ago

kaixinwangzi1982 commented 2 months ago

1.4.2 how to change text to String , not Clob 。in source code : typeMap.put(Types.CLOB, new JdbcTypeInformation("CLOB", //$NON-NLS-1$ new FullyQualifiedJavaType(String.class.getName())));

kaixinwangzi1982 commented 2 months ago

I do now want to generate WithBLOBS.java, how to config!!

jeffgbutler commented 2 months ago

You can use a <columnOverride> to change the type of a column https://mybatis.org/generator/configreference/columnOverride.html

kaixinwangzi1982 commented 2 months ago

May I chage the source code and made it as the default configration?

jeffgbutler commented 2 months ago

What would you change?