Entity Mapping
Learn Entity Mapping (Spring MVC + Database, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Entity mapping tells JPA how a Java class maps to a database table: @Entity marks the class and @Table names the table. Primary key : @Id marks the key field and @GeneratedValue lets the database create values. Columns : fields map to columns by name; use @Column to set the name, length and nullability.