Home > Back-end >  Dynamically created data table and entity class
Dynamically created data table and entity class

Time:09-25

1. To save data in a form template to a dynamically generated data in the table, the thinking of implementation?
Dynamic generation 2. According to the data table, directly in the program is run (non-stop) generated in the corresponding entity classes, XML, etc., can achieve such requirements, have what good method?

CodePudding user response:

1, it is good to save the data directly, JDBC this have what good say of, dynamic data table and table, just not easy to use dynamic data table mybatis libraries, such as
2, according to the data table output file is ok, such as using a freemarker template components can generate the corresponding Java and XML file, but if it is hope that the JVM automatically loading the generated files and can handle it as a class, you will need to invoke javac compile and write custom class loaders loading can be,
  • Related