Skip to main content

Entity Mapping: @Entity, @Table, @Id, @Column

Learn Entity Mapping: @Entity, @Table, @Id, @Column (Spring Data JPA, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

An Entity Is a Class That Maps to a Table Mark a class with @Entity and JPA treats each object as one row of a table. The rest of the annotations describe the details.

More lessons in Spring Data JPA