Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to generate a ERD (entity-relation diagram) based on JPA annotations

Tags:

java

orm

erd

I'm writing a java code using ormlite. I was wondering if it's possible to generate an ERD from the JPA annotations in my code. Basically, I need the reverse of this: How can I transform Entity-Based diagram to a JPA java code

like image 402
Mohammad Moghimi Avatar asked Apr 17 '12 07:04

Mohammad Moghimi


People also ask

Which tool is used to make ER diagram?

Lucidchart is the essential ERD tool to quickly differentiate relationships, entities, and their attributes. Include tables, fields, and primary or foreign keys, then connect each entity with specific crow's foot notations to indicate the cardinality and ordinality of each entity.

Which programs contains an ERD tool that you can use to create an ERD for an existing database?

Navicat. Navicat comes as an offline ERD tool for Windows, Linux, and Mac OS. This ERD modeling tool also supports many major DBMSs like MySQL, SQL Server, Oracle, MariaDB, etc. Navicat provides you with three standard notations and with many other automated features to draw your conceptual to physical ER diagrams.

Which of the following is a visual tool to represent an ER model?

ER Diagram: ER diagram is used as a visual tool for representing the model. As seen above the ER diagram makes it very easy for us to represent the real-world problems. Database Design: This model helps the database designers to build the database and is widely used in database design.


1 Answers

IntelliJ IDEA (Ultimate) provides JPA to ER-Diagram generator.

context menu

In the Persistence tool window, select appropriate node. Then use context menu to select "ER Diagram".

sample ER diagram

Note that JPA facet must be linked to module and UML plugin should be active.

like image 121
Hollis Waite Avatar answered Oct 10 '22 06:10

Hollis Waite