Automatic generation of JavaBean based on table structure, the strongest and most professional javabean tool in the history of Table Structure (3rd edition)

Source: Internet
Author: User



Directory:
1th Edition: http://blog.csdn.net/vipbooks/article/details/51912143
2nd edition: http://blog.csdn.net/vipbooks/article/details/51912537
3rd Edition: http://blog.csdn.net/vipbooks/article/details/51912750
4th Edition: http://blog.csdn.net/vipbooks/article/details/51912930

These days from work home to play chicken blood to catch progress, the third version of the test completed release!
The 2nd edition of the Code is also maintained and optimized, the interface has been improved, modified some bugs, and added to the table field type conversion to Java type of custom features, so that different project needs to configure different types of field conversion!

It has been a headache to convert a database table into an entity or a DTO, which is a headache, and it's a waste of time and complexity, looking at hundreds of hundreds of of thousands of fields in dozens of tables.
We have also thought of a lot of ways to solve this problem, including using MyEclipse to connect to the database to generate JavaBean, but there will be some unsatisfactory place, including tables and table fields comment always can not be generated, but also generate a lot of useless comment code, Make the code look dirty, configuration is cumbersome, and so on.
So rage, self-clothed, last year himself with swing wrote a table through the database generated JavaBean tools, support MySQL, Oracle, Sqlservce, the perfect support JPA annotations, you can generate both entity and DTO, You can automatically remove the table prefix, and support the removal of multiple prefixes, support for specifying exactly which tables are generated by the bean, but also support the Fuzzy Lookup to generate a few tables of beans, now not only the member variable can be generated notes, but also in getter and setter can have notes!
More importantly, all the configuration can be saved to the local, as long as the configuration once, the next use as long as a point to generate JavaBean, the next second will be able to get the javabean you want, fully realize the second generation.

After several projects of the use and accumulation, I decided to share it for everyone to use, we have any good suggestions and ideas can also be proposed, because the relatively busy, has no time to modify and maintain, so there will be some bugs. Due to environmental reasons, the main test is mysql,oracle and SQL Server testing is not complete, may be a bit of a bug.

Well, let me introduce you to the tool I have written.

1, this is the interface of the configuration database:


2, this is the interface to set parameters:


3, the new field conversion settings interface, you can configure different field conversion types according to different project requirements:


4, the supported database, select the database, the following driver name, IP address, library name, port, user name and password will automatically follow the change:


5. Support for JavaBean with JPA annotations and without JPA annotations:


6, choose the function of the template, can deal with more different needs of the project:


7, each input box has notes, as long as the mouse on the above hover to see:


8, the first time the tool is opened will automatically generate two configuration files, one is the configuration database, one is the configuration parameters, generally the first time to go in as long as the configuration of the database, point generation JavaBean, by default can generate both entity and DTO:


9. This is an automatically generated entity and DTO:


: http://download.csdn.net/detail/vipbooks/9576441

The compressed package contains 32-bit and 64-bit two versions.


Use this tool must install Java1.6 and above, because the development environment is JDK1.7, the compilation environment is JDK1.6, so 1.7 and 1.6 of the JDK can run, the other version of the JDK has not been tested, the higher version should be no problem, must be in the operating system environment variables to configure the Java _home, or you will not find Java.
Looking for a lot of tools to package the jar into EXE files, some do not support 64-bit system, and finally found the exe4j, perfect support packaged into 64-bit system support version, but this software needs to find Register machine Note book. I use a 64-bit system, I do not know whether the generated 32-bit programs can not run, if you can not run everyone say, I will test again.

Note: After each download of a new version, if placed in the original directory, it is best to delete the Paramconfig.ini configuration file, open the program will automatically regenerate the latest configuration file.

This article I have published in Iteye, and now in Csnd again, these two blogs are my own, the article mentioned in the software was developed by myself. If you are unable to download due to the lack of product, you can download the http://vipbooks.iteye.com/blog/2212312 free, if you think this software is good, I hope you can download the version I uploaded to Csdn, only need 1 points, but also for my support, thank you!



Automatic generation of JavaBean based on table structure, the strongest and most professional javabean tool in the history of Table Structure (3rd edition)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.