| 14 | import java.util.List; |
| 15 | |
| 16 | public class gen { |
| 17 | //逆向工厂 |
| 18 | public static void main(String[] args) throws InterruptedException, SQLException, IOException, InvalidConfigurationException, XMLParserException { |
| 19 | List<String> warnings = new ArrayList<String>(); |
| 20 | boolean overwrite = true; |
| 21 | File configFile = new File("gen.xml"); |
| 22 | ConfigurationParser cp = new ConfigurationParser(warnings); |
| 23 | Configuration config = cp.parseConfiguration(configFile); |
| 24 | DefaultShellCallback callback = new DefaultShellCallback(overwrite); |
| 25 | MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings); |
| 26 | myBatisGenerator.generate(null); |
| 27 | } |
| 28 | |
| 29 | } |
nothing calls this directly
no outgoing calls
no test coverage detected