JavaBean is automatically generated based on the table structure. The most professional and professional Table Structure Conversion Tool in history (version 12th) is the most powerful in the history of JavaBean.
Http://blog.csdn.net/vipbooks/article/details/51912143 1st edition: http://blog.csdn.net/vipbooks/article/details/51912537 2nd Edition: http://blog.csdn.net/vipbooks/article/details/51912750 3rd edition: http://blog.csdn.net/vipbooks/article/details/51912930 4th edition: http://blog.csdn.net/vipbooks/article/details/51915364 5th edition: http://blog.csdn.net/vipbooks/article/details/51916266 6th edition: http://blog.csdn.net/vipbooks/article/d 7th edition: Etails/51916507 8th edition: http://blog.csdn.net/vipbooks/article/details/52005477 9th edition: http://blog.csdn.net/vipbooks/article/details/52005926 10th edition: http://blog.csdn.net/vipbooks/article/details/52226266 11th edition: http://blog.csdn.net/vipbooks/article/details/52806475 12th edition: http://blog.csdn.net/vipbooks/article/details/53242808 12th edition updates shock release, more powerful, speed coming to the crowd, this version is updated as follows: 1. The parameter configuration management function is added to configure different parameters for different projects. 2. added the quick parameter configuration function to quickly add parameter configurations for the project. 3. added the select object annotation function. when an object is generated, additional annotations are automatically added to the object. 4. Adjust the page size in the pop-up dialog box. 5. Add the default settings for the new data source. 6. If the exact match is more than the point, the selected table will be checked in the pop-up list. 7. Fixed the Bug that the table could not be found in fuzzy match. 8. modify other minor bugs and optimize the code. In the next version, the function of Automatically Generating database design documents based on the database will be released, so it is no longer difficult to write the database design documents. If you find a bug during usage, please remember to tell me that I should fix it in the next updated version. Here is another setting technique, that is, it is best to select "no field verification" when setting the object generation policy, because I found that it is a little slow and inefficient to obtain field verification data through JDBC. In addition, by configuring the naming policies for Hibernate and MyBaits, you can set the object generation policy to "no Column Annotation on all fields", which is the fastest way to generate a JavaBean, and it is much easier to maintain code in the future. Hibernate or JPA configuration: hibernate. ejb. naming_strategy = org. hibernate. cfg. improvedNamingStrategy MySQL configuration: mapUnderscoreToCamelCase = true (after this configuration. xml does not need to write resultMap) MySQL database driver package: mysql-connector-java-5.1.39.jar Oracle Database driver package: ojdbc14.jar SQL Server using the database driver package: sqljdbc4.jar PostgreSQL database driver package: postgresql-9.4.1208.jre7.jar has been converting the database table into Entity or DTO is a headache, both time-consuming and tedious, looking at dozens of hundreds of thousands of fields of hundreds of tables, it's really a headache. We have also thought about a lot of ways to solve this problem, including using MyEclipse to connect to the database to generate JavaBean, but there are still some unsatisfactory aspects, including the comments of tables and table fields, which are always unable to be generated, in addition, a lot of useless comments will be generated to make the Code look not clean at all, and the configuration is very cumbersome. As a result, I wrote a database table to generate a JavaBean tool last year using Swing, supporting MySQL, Oracle, SQLServce, and PostgreSQL, perfect support for JPA annotations. You can generate both Entity and DTO, automatically remove table prefixes, remove multiple prefixes, and precisely specify which tables to generate beans, fuzzy search is also supported for the beans in which tables are generated. Now, not only can the member variables generate comments, but also the comments on Getter and Setter! More importantly, all the configurations can be saved to the local device. Once configured, you only need to click "generate JavaBean" next time to get the desired JavaBean, fully implement second generation. It also integrates various practical tools to make the work efficiency burst instantly, and the productivity burst instantly.
After the use and accumulation of several projects, I decided to share it with everyone. Everyone could give me any good suggestions and ideas, because they were busy, there is no time for modification and maintenance, so there will be some bugs. Due to the environment, MySQL, Oracle, SQL Server, and PostgreSQL tests are not complete and may cause bugs. If you find any bugs, please tell me, fix the issue in the next version.
1. Configure the database interface:
2. Configure conversion parameters:
3. On the field setting page, you can set the field conversion type based on different requirements, and add annotation configuration on the Date type:
4. Advanced Settings page:
5. The integrated tool interface integrates some practical tools to instantly increase productivity several times:
6. Skin swap function. If you choose 38 skin types, there will always be one suitable for you:
7. Data source configuration management function. You can add multiple different data sources for each type of database. To delete a data source, select the data source to be deleted. You do not need to select the data source to modify or select. You can double-click the data source to quickly select the required data source:
8. Quickly add a data source to the selected database:
9. Open the directory function. Click the left-click menu to select the directory to open and right-click to quickly open the directory where the current application is located:
10. added the parameter configuration management function to configure different parameters for different projects:
11. added the quick parameter configuration feature to quickly add parameter configurations for the project:
12. After selecting a supported database, the following configuration, IP address, database name, port, user name, and password are automatically modified to support different databases:
13. After the database is configured, click the test database connection button to test whether the database can be connected successfully and display the database version information:
14. Select the template function to generate beans in different languages as needed. If you want to generate beans of other programming languages, you can send me a standard Bean of that programming language. I made it a standard template and published it:
15. view the dialog box for all tables in the database. Click More next to the exact match text box to display the dialog box for selecting a database table. All Tables in the database are listed here, you can also perform fuzzy search (Case Insensitive) to find the expected table. Select the expected table in the check box and click OK to select the expected table (double-click to select quickly ):
16. schema used to generate objects. schema can be automatically generated. If the schema is the same as the database user name, select dbUsername. If the schema is the same as the database name, select dbName.
17. You can generate both Entity and DTO, or you can choose to generate only some type of Bean:
18. beans with or without JPA annotations are supported:
19. The select object annotation function is added. when an object is generated, an additional annotation is automatically added to the object. The @ NotBlank or @ NotNull verification annotation can be automatically added to non-empty fields:
20. Object generation policies. You can configure different object generation policies as required:
21. Object primary key generation policy. You can configure manual primary key generation or automatic primary key generation:
22. Customize the file annotation and class annotation functions, and use some internal parameters:
23. The String concatenation tool implements second-to-second StringBuffer and is no longer afraid of long SQL statements:
24. The StringBuffer tool is the reverse tool of the String concatenation tool:
25. String formatting tools to improve work efficiency:
26. Table Name Conversion Tool:
27. Tools for transferring names from camper to table:
28. JSON string formatting tool:
29. XML string formatting tool:
30. JSON To XML tool:
31. XML To JSON tool:
32. When the program is opened for the first time, two configuration files are automatically generated, one for configuring the database and the other for configuring parameters, if you set file comments and class comments, the configuration files for these two comments will be generated. Generally, If you configure the database for the first time and click Generate JavaBean, the Entity and DTO will be generated at the same time by default:
33. This is the automatically generated Entity and DTO:
34. This is the latest source code statistics. With the addition of several editions of functions, tens of thousands of lines of code are available:
: Http://download.csdn.net/detail/vipbooks/9688057
The package contains both 32-bit and 64-bit versions.
To use this tool, you must install Java 1.6 or later. Because the development environment is JDK 1.7 and the compilation environment is JDK 1.6, JDK 1.7 and 1.6 can run, and JDK of other versions has not been tested yet, if the version is later, you must configure JAVA_HOME in the environment variables of the operating system. Otherwise, Java cannot be found.
I found a lot of tools to package the Jar package into an EXE file, and I couldn't fully support 64-bit systems. Finally I found exe4j, finally, we can use a 64-bit Win10 system. If the generated 32-bit program cannot run, let's say, I will try the VM again.
Note: after each download of a new version, if you overwrite it to the directory of the old version, you 'd better first Replace the existing paramConfig. the ini configuration file is deleted. After the program is opened, a configuration file that matches the latest version is automatically generated, which can avoid new features.
If you have any questions about how to decompress the package, you can see the two files downloaded, one by one. First, you can decompress the large file and a dialog box for selecting files will pop up, select the small file in the dialog box to decompress the package. You can change the large file to character 1.rar.pdf, and the small file to character 2.rar ". Then, you can decompress the file at one time.