When using the hibernate framework to operate the database, do you want to build tables or classes first?
Building a table first can generate classes and mapping files using myeclipse inversion (more convenient)
The pre-built class can set the hibernate attribute to dynamically generate the table, but you have to choose the mapping file.
When working on a project, data analysis will be carried out first, and a data dictionary will be formed. When the data dictionary comes out, we can write the sql statement according to the data dictionary to build the table, or we can write the entity class or entity class mapping file according to the data dictionary, and then generate the data table. The process of producing entity classes through tables is called reverse engineering. However, reverse engineering is often used in company development now, because data tables are usually designed before coding and are relatively stable, which is beneficial to programmers' later work such as coding.