Concept Flow - JPA entity with @Entity annotation
Write class with @Entity
Add @Id for primary key
Add fields for columns
Spring Boot scans entity
Entity mapped to DB table
Use repository to save/load entity
This flow shows how a Java class is marked as a JPA entity with @Entity, given a primary key with @Id, then scanned and mapped to a database table for CRUD operations.