Fourth, use Rational Rose to make a database modeling
Rose provides a tool called "Data Modeler" that uses it to convert the object model into a data model, or the existing data model can be converted into an object model, thereby achieving synchronization between the two.
Specifically, Data Modeler can:
1. Convert the object model into a data model, which is mapped to the table to the database, constitutes the traditional ER map; Data Modeler | Transform to Data Model
2. Convert data model to object model; (Data Modeler | Transform to Object Model)
3. Use the data model to generate a database DDL, or directly connect to the database, resulting in the database; (Data Modeler | Forward Engineer)
4. Generate data models from existing databases or DDL files; (Data Modeler | Reverse Engineer)
5, compare the data model with DDL files or existing databases; (Data Modeler | Compare to ...)
Note: A class can be converted to a database table, and its persistence property must be Transient.