0% found this document useful (0 votes)
31 views49 pages

Final Report

This document provides a project report on developing an Employee Working Database. The report begins with an acknowledgement section thanking those who provided support and guidance. It then includes an abstract that summarizes the importance of effective employee working management and highlights strategies and technologies that can optimize employee productivity, engagement, and well-being. The table of contents outlines the different chapters covered in the report, which include an introduction describing the objectives of an employee working database, a literature survey of related works, system specifications, a proposed system description, methodologies used, implementation and results, and conclusions and future scope.

Uploaded by

Sudharsan.V.V
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
31 views49 pages

Final Report

This document provides a project report on developing an Employee Working Database. The report begins with an acknowledgement section thanking those who provided support and guidance. It then includes an abstract that summarizes the importance of effective employee working management and highlights strategies and technologies that can optimize employee productivity, engagement, and well-being. The table of contents outlines the different chapters covered in the report, which include an introduction describing the objectives of an employee working database, a literature survey of related works, system specifications, a proposed system description, methodologies used, implementation and results, and conclusions and future scope.

Uploaded by

Sudharsan.V.V
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 49

SRI KRISHNA COLLEGE OF TECHNOLOGY

An Autonomous Institution | Accredited by NAAC with 'A' Grade


Affiliated to Anna University | Approved by AICTE
KOVAIPUDUR, COIMBATORE 641042

EMPLOYEE WORKING DATABASE

A PROJECT REPORT

Submitted by

SUDHARSAN V V 727821TUEC235

in partial fulfillment for the award of the degree of

BACHELOR OF ENGINEERING

IN

ELECTRONICS AND COMMUNICATION ENGINEERING

JUNE 2023
SRI KRISHNA COLLEGE OF TECHNOLOGY
An Autonomous Institution | Accredited by NAAC with 'A' Grade
Affiliated to Anna University | Approved by AICTE
KOVAIPUDUR, COIMBATORE 641042

BONAFIDE CERTIFICATE

Certified that this project report “EMPLOYEE DATABASE”is the bonafide work of
“SUDHARSAN V V ” who carried out the project work under my supervision.

SIGNATURE SIGNATURE
Mr.MANOJ KUMAR . R Dr.M.KARTHIGAI PANDIAN
HEAD OF THE DEPARTMENT
Skill Development Engineer
IamNeo Department of Electronics and
Communication Engineering
Sri Krishna College of Technology,
Coimbatore-641042.

Certified that the candidates were examined by us in the Project Work Viva Voce examination
held on at Sri Krishna College of Technology, Kovaipudur,
Coimbatore -641042

INTERNAL EXAMINER EXTERNAL EXAMINER


ACKNOWLEDGEMENT
ii

ACKNOWLEDGEMENT

First and foremost, we thank the Almighty for being our light and for
showering his gracious blessings throughout the course of this project.

We are grateful to our beloved Principal Dr.M.G.Sumithra M.E., Ph.D.


for her tireless and relentless support.

We extend our sincere thanks to our Head of the Department


Dr.M.KARTHIGAI PANDIAN M.Tech., Ph.D. for her encouragement and
inspiration.

We are greatly indebted to our Industry Mentor Mr.Manoj Kumar for his
valuable guidance and suggestions in all aspects that aided us to ameliorate our
skills.

We are thankful to all those who have directly and indirectly extended their
help to us in completing this project work successfully.
ABSTRACT
iv

ABSTRACT

The Employee working management plays a vital role in fostering productivity,

efficiency, and overall organizational success. This abstract provides a concise overview

of the importance of effective employee working management and its impact on

employee productivity, engagement, and well-being. It also highlights key strategies and

technologies that can be employed to optimize employee working management practices

in today's dynamic work environments.The abstract begins by emphasizing the

significance of employee productivity and engagement in driving organizational growth.

It acknowledges the evolving nature of work, including remote and flexible work

arrangements, and the need for tailored management approaches to meet the unique

challenges and opportunities they present. The abstract delves into modern management

strategies and technologies that can enhance employee working management.

Overall, this abstract provides a comprehensive overview of the importance of effective

employee working management and highlights key strategies and technologies that can be

employed to optimize productivity, engagement, and well-being in today's dynamic work

environments. It serves as a valuable resource for organizations and managers seeking to

enhance their employee working management practices and drive sustainable success.
TABLE OF CONTENTS
TABLE OF CONTENT

CHAPTER.NO TITLE PAGE NO

ABSTRACT iv
LIST OF FIGURES vi
LIST OF ABBREVIATIONS vii
1 1.2 OVERVIEW 3

1.3 OBJECTIVE 3

2 LITERATURE SURVEY 5

3 SYSTEM SPECIFICATIONS 8

4 PROPOSED SYSTEM 12

4.1 PROPOSED SYSTEM 12

4.2 ADVANTAGES 13

5 METHODOLOGIES 15

5.1 LOGIN PAGE 15

5.2 SIGN UP PAGE 16

6 IMPLEMENTATION AND RESULT 18

7 CONCLUSION AND FUTURE SCOPE 34

7.1 CONCLUSION 34

7.2 FUTURE SCOPE 35

8 REFERENCES 37
LIST OF FIGURES
vi

LIST OF FIGURES

Figure No TITLE Page No


5.1 Login Page Flow Chart 15
5.2 SignUp Page Flow Chart 16
6.1 Login page 18
6.2 Signup page 19
6.3 Database page 20
6.4 AddEmployee page 21
6.5 UpdateEmployee page 22
LIST OF ABBREVIATIONS
vii

LIST OF ABBREVIATIONS

ABBREVIATIONS ACRONYMS

HTML HYPERTEXT MARKUP LANGUAGE

CSS CASCADING STYLESHEET

JS JAVASCRIPT

JSON JAVASCRIPT OBJECT NOTATION

SQL STRUCTURED QUERY LANGUAGE

API APPLICATION PROGRAMMING INTERFACE

CRUD CREATE,READ,UPDATE,DELETE

SB SPRING BOOT

REACT REACTJS
PC PERSONAL COMPUTER
INTRODUCTION
CHAPTER 1

INTRODUCTION

This chapter gives a brief theoretical preview upon the database information
systems and goes through the essence of the problem that should be resolved. A robust
and efficient employee working database is the backbone of any successful organization.
A well-organized and efficient employee working database is a vital component for any
successful organization. In today's fast-paced and interconnected world, businesses rely
on accurate and up-to-date information to manage their workforce effectively.

An employee working database serves as a centralized repository that stores


comprehensive details about each employee, their roles, responsibilities, and work history
within the organization. It provides a robust platform to track and manage various aspects
of employment, such as attendance, performance evaluations, training records, and
benefits administration. With the help of advanced technology and data management
systems, an employee working database enables HR professionals and managers to make
informed decisions, streamline processes, and ensure optimal utilization of human
resources. By maintaining a reliable and secure employee working database,
organizations can enhance productivity, foster employee engagement, and create a
supportive work environment that ultimately contributes to their overall success.
1.1 OVERVIEW

This The next chapter and its subsections will turn the attention to the method for
resolving the problem, the programming environments used for developing the system
and the implementation of the operations performed upon the database. An employment
working database is a centralized repository that stores comprehensive employee
information, facilitating effective management of workforce data for decision-making
and streamlined processes.

1.2 OBJECTIVE

The primary objective of an employment working database is to provide a centralized


and reliable platform for managing and organizing employee information. By collecting and
storing comprehensive data about each employee, including their personal details,
employment history, skills, performance evaluations, training records, and benefits, the
database enables HR professionals and managers to make informed decisions and streamline
various HR processes. It serves as a valuable tool for tracking employee attendance,
managing leave and time-off requests, and conducting performance reviews. The database
also aids in identifying skill gaps and training needs within the workforce, allowing
organizations to plan and implement targeted employee development programs.
Additionally, the employment working database enhances data accuracy and accessibility,
promoting efficient communication and collaboration among different departments within
the organization. Overall, the objective of the employment working database is to optimize
the utilization of human resources, enhance productivity, and foster a supportive work
environment that contributes to the success of the organization.
LITERATURE SURVEY
CHAPTER 2

LITERATURE SURVEY

2.1 RELATED WORKS

[1] Streamlining HR processes:

An employment working database simplifies and automates HR processes,


such as employee onboarding, performance evaluations, and benefits
administration. It eliminates manual paperwork and reduces administrative
burdens, allowing HR professionals to focus on strategic initiatives.

[2] Enhanced decision-making:

With a comprehensive employee database, managers and HR professionals


have access to real-time data and insights. This enables informed decision-making
regarding workforce planning, talent management, and performance improvement
initiatives.

[3] Improved data accuracy and accessibility:

Centralizing employee data in a working database ensures data accuracy


and consistency. It eliminates duplicate or outdated information and provides a
single source of truth for all employee-related data. Moreover, authorized
personnel can easily access and retrieve necessary information, promoting efficient
communication and collaboration.
[4] Efficient communication and collaboration:

An employment working database facilitates seamless communication and


collaboration between HR, managers, and employees. It allows for easy sharing of
information, tracking of employee progress, and assigning and managing tasks.
This promotes transparency and teamwork within the organization

[5] Benefits administration:

The working database can assist in managing employee benefits, including


health insurance, retirement plans, and paid time off. It tracks benefit enrollment,
eligibility, and usage, streamlining benefits administration and providing
employees with a comprehensive overview of their benefits.

[6] User-friendly interface and navigation:

The database should have an intuitive and user-friendly interface that allows
users to easily navigate and retrieve information. A well-designed user experience
improves adoption and maximizes the benefits of the employment working
database.
[7] Regular data updates and maintenance

Regularly updating and maintaining the employment working database is


essential to keep employee data accurate and relevant. Organizations should
establish processes for data validation, cleansing, and archival to ensure data
integrity over time.
SYSTEM SPECIFICATION
CHAPTER 3
SYSTEM
SPECIFICATION

In this chapter, we are gonna see the softwares that we have used to build the
website. This chapter gives you a small description about the softwares used in the
project.

3.1 VS CODE

Visual Studio Code is a source code editor developed by Microsoft for Windows,
Linux, and macOS. It includes support for debugging, embedded Git control, syntax
highlighting, intelligent code completion, snippets, and code refactoring. It is also
customizable, so users can change the editor's theme, keyboard shortcuts, and
preferences.

VS Code is an excellent code editor for React projects. It is lightweight,


customizable, and has a wide range of features that make it ideal for React development.
It has built-in support for JavaScript, JSX, and TypeScript, and enables developers to
quickly move between files and view detailed type definitions. It also has a built-in
terminal for running tasks. Additionally, VS Code has an extensive library of extensions
that allow developers to quickly add features like code snippets, debugging tools, and
linting support to their projects.

3.2.REACT

React is a JavaScript library created by Facebook for building user interfaces. It is


a component-based, declarative, and highly efficient library that is used to develop
interactive UIs (user interfaces) for single page web applications. React uses a virtual
DOM (Document Object Model) that makes it faster and easier to manipulate the DOM
elements. It also provides declarative components that allow developers to write code that
is easy to read and maintain. React also offers an extensive library of tools and
components that make it easier to develop complex user interfaces.

3.3 ROUTERS IN REACT

Routers are important components in React applications. They provide the ability
to navigate between different views or components of the application. React Router is the
most popular library to handle routing in React applications. It provides the ability to
define routes, set up links, and render components based on the current route. It also
provides features like data fetching, code-splitting, and server-side rendering.

3.4 LOCAL STORAGE

Local storage is a type of web storage for storing data on the client side of a web
browser. It allows websites to store data on a user’s computer, which can then be
accessed by the website again when the user returns. Local storage is a more secure
alternative to cookies because it allows websites to store data without having to send it
back and forth with each request. Local storage is a key-value pair storage mechanism,
meaning it stores data in the form of a key and corresponding value. It is similar to a
database table in that it stores data in columns and rows, except that local storage stores
the data in the browser rather than in a database. Local storage is often used to store user
information such as preferences and settings, or to store data that is not meant to be
shared with other websites. It is also used to cache data to improve the performance of a
website. Local storage is supported by all modern web browsers, including Chrome.
3.5 SPRING BOOT

Java Spring Boot is an open-source tool that makes it easier to use Java-based
frameworks to create microservices and web apps. For any definition of Spring Boot, the
conversation has to start with Java—one of the most popular and widely used development
languages and computing platforms for app development. Developers all over the world start
their coding journey learning Java. Flexible and user-friendly, Java is a developer favorite for a
variety of apps—everything from social media, web, and gaming apps to networking and
enterprise applications. Spring Boot makes it easy to create stand-alone, production-grade Spring
based Applications that you can "just run".

3.6 MY SQL DATABASE MANAGEMENT

A database is a structured collection of data. It may be anything from a simple shopping


list to a picture gallery or the vast amounts of information in a corporate network. To add,
access, and process data stored in a computer database, you need a database management system
such as MySQL Server. Since computers are very good at handling large amounts of data,
database management systems play a central role in computing, as standalone utilities, or as
parts of other applications. The SQL part of “MySQL” stands for “Structured Query Language”.
SQL is the most common standardized language used to access databases. Depending on your
programming environment, you might enter SQL directly (for example, to generate reports),
embed SQL statements into code written in another language, or use a language-specific API
that hides the SQL syntax.
PROPOSED SYSTEM
CHAPTER 4

PROPOSED SYSTEM

This chapter gives a small description about the proposed idea behind the
development of my website

4.1 PROPOSED SYSTEM

The proposed system for an employee working database aims to create an efficient
and streamlined platform for managing employee information within an organization.
The system will feature a centralized database that stores comprehensive details about
each employee, including personal information, employment history, skills, performance
evaluations, training records, and benefits administration.

It will provide user-friendly interfaces and navigation, allowing HR professionals


and managers to easily access and update employee data. The system will include
features such as attendance and time tracking, performance evaluation and feedback
management, training and development tracking, and leave and time-off management.
Additionally, it will prioritize data security and privacy by implementing proper access
controls and encryption measures. Integration with existing HR systems, seamless data
exchange, and regular data updates and maintenance will ensure data accuracy and
consistency. The proposed system will ultimately optimize workforce management,
enhance decision-making, and foster a supportive work environment, contributing to the
overall success of the organization.
4.2 ADVANTAGES

· Centralized Information: A single repository for all employee data allows for easy
access, updates, and retrieval of information, eliminating the need for multiple
sources and reducing data redundancy.

· Streamlined HR Processes: The database automates various HR processes, such as


onboarding, performance evaluations, benefits administration, and leave management,
reducing manual paperwork and administrative burdens.

· Enhanced Decision-Making: Access to real-time and accurate employee data enables


managers and HR professionals to make informed decisions regarding workforce
planning, talent management, performance improvement, and resource allocation.

· Better Performance Management: Performance evaluation and feedback


functionalities in the database enable timely and constructive performance reviews,
goal tracking, and continuous feedback, leading to improved employee performance
and engagement.

· Time and Cost Savings: The automation of HR processes, reduction in manual


paperwork, and efficient data management result in time and cost savings for the
organization.

· Easy Reporting and Analytics: The database enables HR professionals to generate


reports, analyze employee data, and derive meaningful insights, supporting evidence-
based decision-making and improving overall organizational performance.

· Improved Data Accuracy: By eliminating duplicate or outdated information and


ensuring consistent data entry, the database promotes data accuracy and integrity,
leading to more reliable reporting and analysis.
METHODOLOGIES
CHAPTER 5
METHODOLOGIES

5.1. LOGIN

Fig 5.1. LOGIN PAGE FLOWCHART


A login page flowchart illustrates the sequence of steps or decisions involved
in the process of logging into a system or application. It helps visualize the user's journey
from the initial login page to successful authentication.
5.2 SIGNUP PAGE

Fig 5.2 SIGNUP PAGE FLOWCHART

A signup page flowchart typically represents the steps involved in the user
registration process on a website or application. It illustrates the various screens, actions,
and decision points that a user encounters while signing up. Here is some information
that can be included in a signup page flowchart:
IMPLEMENTATION AND RESULT
CHAPTER 6
IMPLEMENTATION AND RESULT

This chapter gives a description about the output that we produced by developing
the website of our idea.

6.2 LOGIN

This login page is a common feature that require user authentication. It serves as
the entry point for users to access their accounts or secure areas of a website.

Fig 6.1 LOGIN PAGE


6.2.2 SIGN UP

This signup page, also known as a registration page, is an essential component of


websites and applications that require user accounts. It allows new users to create an
account and gain access to the features and services provided.a user doesn’t have an
account on the website. These inputs will be validated.

Fg 6.2 SIGNUP PAGE


6.2.3 HOME PAGE

The homepage of a website serves as the primary landing page for visitors and
plays a crucial role in providing an overview of the website's content, features, and
navigation options.

Fig 6.3 HOME PAGE


6.2.4 ADD USER PAGE

When it comes to adding information to a user homepage on a website or


application, several key details and features can be included to enhance the user
experience.

Fig 6.5 ADD PAGE


6.2.5 UPDATE USER PAGE

When it comes to editing information to a user homepage on a website or


application, several key details and features can be included to enhance the user
experience.

Fig 6.6 UPDATE PAG


6.7 CODING FRONTEND

Login:

import React, { useEffect, useState } from 'react'


import { Link ,useNavigate} from 'react-router-dom'
import "./login.css"
function Login() {
const nav=useNavigate();
const[username,setUsername]=useState('');
const[password,setpassword]=useState('');
const[user,setUser]=useState('');
const fetchData = () => {
return fetch("http://localhost:8080/login/get")
.then((response) => response.json())
.then((data) => setUser(data));
}
useEffect(() => {
fetchData();
},[])
const authenticate=(e)=>{
e.preventDefault();
const usercheck = user.find(user => (user.username === username && user.password ===
password));
if(username.length===0){
alert("Enter Username")
}
else if(password.length===0){
alert("Enter password")
}
else if(!usercheck){
alert("Wrong Username or Password!")
}
else {
nav("/home") } }
return (
<div id="body">
<div className="signup-form">
<div className="container">
<div className="header">
<h1>STARIST</h1>
<p>Enter Your Credentials For Login</p>
</div>
<form>
<div className="input">
<i className="fa-solid fa-user"></i>
<inputtype="text"onChange={(e)=>setUsername(e.target.value)}
placeholder="Username" />
</div>
<div className="input">
<i className="fa-solid fa-lock"></i>
<inputtype="password"onChange={(e)=>setpassword(e.target.value)}
placeholder="Password" />
</div>
<input onClick={authenticate} className="signup-btn" type="submit"
value="LOGIN" />
</form>
<Link to="/register"> <p>No Account? Signup Now!</p></Link>
</div>
</div>
</div>
) }
export default Login;
Home Page:

import import React, { useEffect, useState } from 'react'


import { Link, useNavigate } from 'react-router-dom'
import EmployeeService from './EmployeeService';
import { Pagination } from '@mui/lab';
import axios from 'axios';
const Home=()=> {
const nav=useNavigate();
const [currentPage, setCurrentPage] = useState(1);
const [totalPages, setTotalPages] = useState(0);
const itemsPerPage = 5;
const [sortBy, setSortBy] = useState('id');
const [sortOrder, setSortOrder] = useState('asc');
const [employees, setEmployees] = useState([])
useEffect(() => {
getAllEmployees();
}, [currentPage,sortBy,sortOrder])

const getAllEmployees = () => {


axios.get(`http://localhost:8080/employees/${currentPage}/${itemsPerPage}/${sortBy}/$
{sortOrder}`).then((response) => {
const{content,totalPages}=response.data;
setEmployees(response.data)
setTotalPages(totalPages);
console.log(response.data);
}).catch(error =>{
console.log(error);
})
}
const handleSort = (column) => {
if (column === sortBy) {
setSortOrder(sortOrder === 'asc' ? 'desc' : 'asc');
} else {
setSortBy(column);
setSortOrder('asc');
}
};

const deleteEmployee = (employeeId) => {


if(window.confirm("Sure to Delete?")){
EmployeeService.deleteEmployee(employeeId).then((response) =>{
getAllEmployees();

}).catch(error =>{
console.log(error);
})
}
}
const deleteAllEmployee = () => {
if(window.confirm("Sure to Delete All Employees?")){
EmployeeService.deleteAllEmployee().then((response) =>{
getAllEmployees();

}).catch(error =>{
console.log(error);
})
}
}
const LogoutHandler=()=>{
if(window.confirm("Sure to Logout?")){
nav("/")
}
}
const handlePageChange = (event, page) => {
setCurrentPage(page);
};

return (
<div id="container">
<h1>STARIST</h1>
<Link to="/add"><button id="addbtn">Add Employee Details</button></Link>
<button id="delbtn" onClick={deleteAllEmployee} >Delete All Employees</button>

<table id="table">
<thead>
<tr>
<th onClick={() => handleSort('id')}>Id {sortBy === 'id' && (sortOrder === 'asc' ?
'▲' : '▼') }</th>
<th onClick={() => handleSort('name')}>Name {sortBy === 'name' && (sortOrder
=== 'asc' ? '▲' : '▼') }</th>
<th onClick={() => handleSort('age')}>Age {sortBy === 'age' && (sortOrder ===
'asc' ? '▲' : '▼') }</th>
<th>Phone</th>
<th>Position</th>
<th onClick={() => handleSort('salary')}>Salary {sortBy === 'salary' && (sortOrder
=== 'asc' ? '▲' : '▼') }</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{
employees.content&&employees.content.map(
(employee) => (
<tr key={employee.id}>
<th id="id"> {employee.id}</th>
<th id="name"> {employee.name}</th>
<th id="age"> {employee.age}</th>
<th id="phone"> {employee.phone}</th>
<th id="pos"> {employee.position}</th>
<th id="salary"> {employee.salary}</th>
<th id="action"><Link to={`/update/${employee.id}`}><button
id="actions">Update</button></Link>
<button id="action-del" onClick = {() => deleteEmployee(employee.id)}
> Delete!</button></th>

</tr>
))}
</tbody>
</table>
<Pagination className='page'
count={totalPages}
page={currentPage}
onChange={handlePageChange}
/>
<button id="logout" onClick={LogoutHandler}>Logout</button>

</div>
)
}

export default Home


6.8 CODING BACKEND

EMPLOYEE CONTROLLER:
package com.example.demo.Controller;

import java.util.List;
import java.util.Optional;

import javax.xml.crypto.Data;
import org.hibernate.grammars.hql.HqlParser.SortDirectionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.Entity.Employees;
import com.example.demo.Repository.EmployeeRepository;
import com.example.demo.Service.EmployeeService;
@CrossOrigin("*")
@RestController
@RequestMapping("/employees")
public class EmployeeController {

@Autowired
private EmployeeRepository employeeRepository;
@GetMapping(value="/get")
public List<Employees> getAllEmployees(){
return employeeRepository.findAll();
}
@GetMapping(value="/{currentPage}/{itemsPerPage}/{sortBy}/{sortOrder}")
public Page<Employees> getData(@PathVariable(value="currentPage") int page,
@PathVariable(value= "itemsPerPage") int size,
@PathVariable(value= "sortBy") String field,
@PathVariable(value= "sortOrder") String direction) {
Pageable paging;
if(direction.equals("asc")) {
paging=PageRequest.of(page-1, size).withSort(Sort.by(field));
}
else {
paging=PageRequest.of(page-1, size).withSort(Sort.by(field).descending());
}
return employeeRepository.findAll(paging);
}
@PostMapping
public Employees createEmployee(@RequestBody Employees employee) {
return employeeRepository.save(employee);
}
@GetMapping("{id}")
public ResponseEntity<Optional<Employees>> getEmployeeById(@PathVariable int id){
Optional<Employees> employee = employeeRepository.findById(id);
return ResponseEntity.ok(employee);
}

@PutMapping("{id}")
public Employees updateBookDetails(@RequestBody Employees b)
{
System.out.println("Changes Made Have Been Successfully Updated");
return employeeRepository.save(b);
}
@DeleteMapping("{id}")
public String deleteDetails(@PathVariable int id)
{
employeeRepository.deleteById(id);
return "Id : "+id+" is deleted";
}
@DeleteMapping
public String deleteAllDetails()
{
employeeRepository.deleteAll();
return "All employees deleted";
}
}
EMPLOYEE SERVICE:

package com.example.demo.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.demo.Entity.SignUp;
import com.example.demo.Repository.SignUpRepo;
@Service
public class SignUpService {
@Autowired
SignUpRepo repo;
public Iterable<SignUp> GetAll(){
return repo.findAll();
}
}

EMPLOYEE REPOSITORY:

package com.example.demo.Repository;

import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.Entity.Employees;

public interface EmployeeRepository extends JpaRepository<Employees,Integer>{

}
CONCLUSION
CHAPTER 7

CONCLUSION

This chapter tells about the conclusion that anyone can drive from the project and
the learning we learnt by taking over this project.

7.1 CONCLUSION

In this report, an information system’s development has been presented. It was


emphasized on the basic steps, consequently taken during the project’s development
course as a particular attention was turned to the basic operative functions performed
upon the data into the database.
The report’s content comprises the whole task solution, starting from the
programming environments have been selected, going through the database, the
application’s analyze and construction, and finishing with the code-implementation and
test-samples, shown separately in Appendix chapters.
Apparently, the role of such systems is basic and essential within each company
that wants to keep a really good control and record concerning its personnel data,
functionality and performance on all levels in its structure. Every organization, in
nowadays, has the necessity of managing its staff on a really good level as the staff has
definitely the greatest merit of building up a company as such as it is. The wellmanaged
staff means giving the appropriate financial award-ness and all kind of benefits as such as
they have been deserved. That’s why the development of such systems is not just a
programming business – a lot of people are ordinarily involved in such projects and one
of the basic requirements is the reliability of the system, especially what concerns the
storage of data and all of the operations that will be performed upon it.
7.2 FUTURE SCOPE

1.The future scope of employee working database management holds significant


potential as technology continues to advance and organizations strive for more efficient
and streamlined operations. With the advent of emerging technologies such as artificial
intelligence, machine learning, and data analytics, the management of employee working
databases is expected to undergo transformative changes.

2.One area of future development is the automation of routine tasks involved in


employee data management. Intelligent algorithms can be leveraged to automatically
update employee information, track attendance, manage leave requests, and generate
reports, thereby reducing manual effort and minimizing human errors. This automation
allows HR personnel to focus on more strategic initiatives and employee engagement
activities.

3. Furthermore, the future of employee working database management also


involves leveraging data analytics to derive valuable insights. These insights empower
management with data-driven strategies to enhance productivity, engagement, and
retention.

Overall, the future scope of employee working database management holds


immense potential for streamlining HR processes, improving decision-making, and
enhancing the employee experience. By leveraging emerging technologies and embracing
data-driven approaches, organizations can unlock valuable insights, optimize operations,
and create a more agile and engaged workforce.
REFERENCES
REFERENCES

1. Begg Carolyn, Connolly Thomas, Database systems (a Practical approach to


Design, Implementation, and Management), Addison-Wesley, an imprint of
Pearson Education, University of Paisley (U.K.), Fourth edition 2005
2. Bodnar George /Duquesne University/, Hopwood William /Florida
Atlantic University/, Accounting Information systems, Eighth Edition,
Prentice Hall, Upper Saddle River, New Jersey .
3. Andersson Tobias, [DAB744] C# Course Lectures, School of Mathematics
and System Engineering, Växjö University.
4. Andersen Virginia, Access 2000: The Complete Reference, Blacklick, OH,
USA: McGraw-Hill Professional Book Group, 2001,

You might also like