The data domain layer

If views are mapped to form domain objects, table schema are mapped to data domain objects. It is the depiction of a table schema definition that can be used for inserting, updating, removing and reading records. In JPA implementation, these data domain classes are called entity classes. In Hibernate these are called persistent classes. In MyBatis and Spring JDBC, these are just POJOs.

Implementation A – using a Spring JDBC plugin

Given the Tblregistration table, SMP's domain class for this table is shown as follows:

public class Tblregistration { private String firstName; private String midName; private String lastName; private Date birthDate; private String gender; // More on the source public String getUsername() { return ...

Get Spring MVC Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.