A web application has some sort of database interaction, covering basic Create, Read, Update, and Delete (CRUD) operations, as a bare minimum. It requires a good amount of effort when done manually. The following tasks need to be completed, in this case:
- Creating database tables, along with their relations and constraints
- Constructing a model entity and building the data access object (DAO) layer to provide the data interface with the database
- Generating a service layer to encapsulate business logic
- Preparing the web controller and frontend layer, along with all validations, to store the data in the respective entity table
Apart from this, additional effort may be required to accommodate future changes on any layer. JHipster provides an ingenious solution to this problem. After creating an application, we need to build a data access layer, and JHipster makes this whole process automatic.
A concept in JHipster called entity generation makes this happen. Entities are the building...