Employee Management System Abstract:: Project Design: A. Database Design
Employee Management System Abstract:: Project Design: A. Database Design
Abstract:
Create a console based Java application that would allow the HR admin of a company to add /
modify / view information of an Employee as per the design specifications given below. The
data received from the user (HR admin) will be stored in database and retrieved when required.
Project Design:
A. Database Design:
1. Create a new user in database [ To be done in the backend by using sql commands ]
a) Note: Do NOT use the default scott/tiger account of oracle for this project. You will
have to create a new user in the below mentioned format.
b) Username/password : B<batchnumber><employeeid>
For example, if your batch number is 39806 and Employee number is 12345, then
the oracle user should be B3980612345 and the password should beB3980612345
c) For JDBC connection, only use orcl as service name and 1521 as port number
3. Create Table [ To be done using sql commands, after logging-in as the new user that
has been created in above step ]
4. Create Sequence:
Sequence Name : EMPID_SEQ
B. System Design:
Name of the package Usage
com.wipro.emp.service This package will contain the class which displays the console menu and
take user input.
com.wipro.emp.bean This package will contain the entity class named EmployeeBean.
com.wipro.emp.dao This package will contain the class that will do the database related
JDBC code.
com.wipro.emp.util This package will contain the class to establish database connection and
also the class that handles the user defined exception.
Package: com.wipro.emp.util
Package: com.wipro.emp.bean
Package: com.wipro.emp.dao
Package: com.wipro.emp.service
Test Cases:
Below are the actual set of test cases that the CPC test engine will run in the
background. Please ensure that the conditions mentioned in these test-cases are
handled by your class design.
Main Method:
You can write code in the main method and test all the above test cases. A sample
code of the main function to test the second test case is shown below for your
reference.
public static void main(String[] args) {
EmpMain empmain = new EmpMain();
EmployeeBean empbean = new EmployeeBean();
empbean.setEmpName("");
empbean.setGender("Male");
empbean.setSalary(5000);
empbean.setDateOfBirth(new java.util.Date());
String result = empmain.addEmployee(empbean);
System.out.println(result);
}