Creating an er Chart from a Hibernate Object

I would like to generate an ER diagram from Hibernate or Hibernate objects. I chose a visual paradigm tool that provides this feature. I would like to know your feedback on the visual paradigm or some other tools if you know that it supports the above function.

+7
java hibernate visual-paradigm
source share
2 answers

The single version of truth

Please do not use entities to change the structure of the database:

  • if you add a non-zero column of a non-standard value to an object that cannot be changed in the database, if there are rows in this table, because the original value of this column cannot be calculated.
  • If you add fk to the table, some values โ€‹โ€‹may have illegal links. You do not like deployment problems.

Use the db manager tools instead and compute entities from db.

0
source share

If you are using IntelliJ Idea (Ultimate), you can use the Persistence Tool window. To use this feature, you need to add Java EE Persistence Framework support to your project or module. (Note. To do this, go to the Project Tool window: right-click the module folder and select Add Framework Support.)

For the tool window to be accessible, your project must have a module with support for JPA or Hibernate, i.e. a module with a JPA or Hibernate edge.

To open the tool window, do one of the following:

  • Choose View> Tools> Sustainability.
  • If the window toolbar is currently click the "Save" button (usually located in the lower left of the workspace).

After that, you can create a persistence mapping. Then right-click on the generated save module and select "ER Chart".

Literature:

-one
source share

All Articles