- Employee Management System
- Requirements Analysis
- Design Pattern
- Language and Tool Selection
- Database Scripting With Spring Data JPA
- Advantage of Spring JpaTemplate
Here, this website helps to manage the employee and department record. It is usually used in organization to store the detail on employee and department.
Summarizing all the user requirements we can conclude the following measures as the actual user requirements. According to client requirements we must create an inventory application with following requirements:
- User
- Register, login
- Department
- add, update, delete, list and view Department
- department list
- Employee
- add, update, delete, list and view Employee
- Employee detail
Briefing out the requirements, I will be creating an website which can store details of employee, department.
In order to implement a model I have used MVC template.
- Create a pojo file. give annotation like @Entity, @Data, @Table
- Map the pojo file to database (JPA repository)
- Make a repository
- Make an interface
- Make an implementation class for implementing interface abstract method
- Make a controller where getMapping and postMapping are done
- Finally, make view(html template)
The list of tools used while developing the project are as follows.
Backend : Java, Spring Boot Framework
Package Manager: Maven
Server : Apache Tomcat
Frontend : Html5, Thymeleaf
Styling : Bootstrap, Css
Documentation : MarkDown (MD)
Database : MySQL
Database Management system : MySQLyog
IDE : Spring Tool Suite
Version Control : GitHub
Project Manager : GitHub Projects
Development OS: Windows 10 Home Edition
Spring Data JPA API
provides JpaTemplate class to integrate spring application with JPA. It is currently used as the replacement for complex entity beans.
The implementation of JPA specification are provided by many vendors such as:
- Hibernate
- OpenJPA etc.
Really handy for persisting, updating, deleting or searching object. JPA handles most of the complexity of JDBC-based database access and object-relational mappings. On top of that, Spring Data JPA reduces the amount of boilerplate code required by JPA.
Spring Data JPA helps to generate database itself using JPA API Under the hood configured with moduls you create. Readmore about Spring Data JPA