Media & Marketing


Carlos Barge

Class Diagram can be used for modeling the structural view of an object-oriented system, while entity-relationship diagram (ERD) typically models the persistent view for a relational database.

Your objects need to be persisted the data inside a database and the ERD is used for this purpose.

Entity-Relationship(ER) Diagrams are used to design the database perspective of the project, unlike the class diagram which is used to design the application domain model of the project.

The objects, which are produced according to the templates ( Classes), are stored within a database for persistence purposes. So there is a semantic relation between them that’s it.

You can actually generate a Class diagram into ERD or vice versa by using a modeling tool. If you want to control the database using pure java you can actually perform object-relational mapping (ORM) for relating the class diagram with the ERD and subsequently the database.

An entity relationship diagram gives a snapshot of how these entities relate to each other. You could call it the blueprint that underpins your business architecture, offering a visual representation of the relationships between different sets of data (entities).

In the diagram, entities are represented by boxes with lines linking them to various attributes, which describe the entity’s qualities or characteristics.

Everything links up according to the relationships between the entities – or how they interact with each other. Relationships are sometimes referred to as cardinalities, which describes the interactions numerically – but let’s simply call them relationships.

Free Pre-Assessment Request

Do you want to know how your competitors are doing business?

Tell us a little about yourself below to gain data for free

Hi What’s your name?


Hi [First Name], what is your company’s name and website?



Is your company looking for any data on the following services:



Gotcha! Do you want to monitor any specific competitor or market?

List of Competitors

  • Add competitor…



Finally, what’s your email address and your phone number?



Your Data is on the Way!

Our data scientists team is working for you by collecting data and we’ll come back to you shortly with a pre-assessment and proposal.

WYgroup BI uses the information you provide to us to contact you about our relevant content, products, and services . You can unsubscribe from communications from HubSpot at any time. For more information, check out WYgroup’s Privacy Notice.

Leave a Comment:

Your email address will not be published. Required fields are marked *