Validation is comparing structure of database table (one you have created using “create table” command) and entity class.