It is believed that every reader of Java development has been exposed to SQL build statements, especially in the early stages of project development, because the database is the cornerstone of the project.
In modern project development, there are many ORM frameworks that can interact with the database through simple entity mapping, but we originally designed the database table structure, not the entity class. The entity class is only lossy compression of the underlying data structure, it is only the carrier, and does not have the ability of data archiving.
So, a lot of times, we need to convert the original SQL statement into Java entity class, this work seems simple, but if done manually, the workload is considerable, and inevitably error.
So far, I have not found the more reliable tools, they are either cumbersome, or poor flexibility, so it is time to build wheels!
Online database table (SQL statement) Generation Java Entity Class tool is the author of an online conversion tool, just fill in the SQL statement, and then adjust the appropriate configuration, one-click to complete the conversion.
At first glance, an online database table (SQL statement) generates a bewildering array of configuration items for the Java Entity Class tool, in fact only a small part is required, and most of the configuration items are designed to meet more personalized requirements.
If the conversion succeeds, the reader will get a zip package containing all of the entity class (. java) files, which in theory can be copied directly into the project, and if the conversion fails, the reader will get a false hint that it may not help the reader, but it does happen.
Finally, it is necessary to note that the Java entity class generated by this tool is a pure entity class that only maps data and does not involve correlation, so it is naturally applicable to MyBatis. For the bloated procrastination of hibernate, only regret to say sorry, this tool is definitely not recommended in the entity class to express the association relationship.
For specific use methods, see:
Online database tables (SQL statements) Generate Java Entity class Tools user manual
Online database tables (SQL statements) Generate Java entity class tools through train
Online database tables (SQL statements) Generate Java entity class tools