Skip to main content

Entity Layer

Learn Entity Layer (Layered Architecture, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Entity is a Java class mapped to a database table; each object is one row and each field is a column. Annotations : @Entity , @Table , @Id and @GeneratedValue describe the mapping. Domain model : the entity layer holds the data and the rules that belong to the data, and it is not the same as the JSON sent to clients.

More lessons in Layered Architecture