Reputation: 1857
I thought it would be obvious to automatically generate an Entity-Relation Diagram (ERD) from Hibernate-annotated source code in Spring Boot, but this doesn't seem to be the case.
I was expecting to find a maven plugin to provide the functionality but didn't find one. This is why I am addressing the Spring community for advice.
Had anyone already have to do this type of reverse engineering in order to generate the ERD diagram from Spring Boot source code?
I need this actually to better document the data used and consumed by a big system made of more that 20 micro-services where existing documentation is not good / complete enough and does not reflect the current state of the system.
I already had an idea to start from swagger to generate the controller / model documentation and to convert that to UML / ERD, but didn't find the good tools neither.
Thanks in advance!
Upvotes: 5
Views: 5276
Reputation: 54
Recently i came accross the same problem.
You can generate ERD diagram for my sql directly from your mysql workbecnh. Kindly refer to this artcile: https://medium.com/@tushar0618/how-to-create-er-diagram-of-a-database-in-mysql-workbench-209fbf63fd03
for other database you can refer to this article: https://ngrashia.medium.com/create-entity-relationship-diagram-using-eclipse-b1330cb921d5
Upvotes: 0
Reputation: 36203
ERD is a database diagram that you could generate from a database with according tools. For example IntelliJ or DBeaver.
UML you can generate with IntelliJ as well.
But what you are probably looking for are tools like Structure101 that will generate dependency graphs and layered diagrams to understand the code.
These tools are usually not for free.
Upvotes: 1