XBatis-Code-Generator
XBatis-Code-Generator copied to clipboard
simple the code and refactor
after check the code you have written. I have found that you can reuse the com.mysql.jdbc.DatabaseMetaData for the database information which contains the enough information to generate the velocity or freemark file.
secondly , you can extract the interface or abstract class to support different platform .
thirdly , you can implement the function which contains the configuration which user can specify the tables wanted .