JPA Entity Relationships

Relationship Inspector

Select a relationship type from the top menu to see how Java Objects are mapped to Database Tables.

Key Concepts

Foreign Key: The column that links rows.
Owning Side: The entity that owns the Foreign Key in the database.
1
1
Map & Save
Java Memory (Entities)
Entity
User
// Select a flow
Object Reference
Entity
Profile
// Select a flow
Hibernate ORM
Translates Objects to Relational schema
Relational Database
Table
users
id (PK)BIGINT
nameVARCHAR
Table
profiles
id (PK)BIGINT
bioVARCHAR