https://github.com/nix0123/simple_employee_managment_app
This project was a simple learning project which implemented "Enterprise Java Application" with Maven, Hibernate, Servlet and DAO files. IMPLEMENTED ON: Apache Netbeans IDE 24. SERVER USED: Tomcat-10. Database ON: XAMPP LocatHost MySQL.
https://github.com/nix0123/simple_employee_managment_app
apache-netbeans dao-interface enterprise-java-beans hibernate java maven servlet-jsp tomcat10
Last synced: 2 months ago
JSON representation
This project was a simple learning project which implemented "Enterprise Java Application" with Maven, Hibernate, Servlet and DAO files. IMPLEMENTED ON: Apache Netbeans IDE 24. SERVER USED: Tomcat-10. Database ON: XAMPP LocatHost MySQL.
- Host: GitHub
- URL: https://github.com/nix0123/simple_employee_managment_app
- Owner: Nix0123
- Created: 2025-04-08T04:38:08.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-08T05:36:04.000Z (2 months ago)
- Last Synced: 2025-04-08T06:23:05.048Z (2 months ago)
- Topics: apache-netbeans, dao-interface, enterprise-java-beans, hibernate, java, maven, servlet-jsp, tomcat10
- Language: Java
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PLEASE READ READ.MD IN CODE FORMAT FOR BETTER UNDERSTANDING
This project was for a learning concept which implemented "Enterprise Java Application" with Maven, Hibernate, Servlet and DAO files.
Following is the description of the project, along with necessary info on deploying it:
IMPLEMENTED ON: Apache Netbeans IDE 24.
SERVER USED: Tomcat-10.
Database ON: XAMPP LocatHost MySQL.# Requirments before implementation:
1. Create a database named "employeeDB" contaning a table named "employees" with the following schema:-
-id Primary int(11) AUTO_INCREMENT
-name varchar(50)
-department varchar(50)
-salary int(10)2. Download and install Apcahe Netbeans IDE 24.
3. Download and implement Tomcat-10 Server.# Steps for implementation:-
If Hibernate isn't available, you will need to download the following JAR files and add them manually:
• hibernate-core-x.x.x.Final.jar
• hibernate-commons-annotations-x.x.x.Final.jar
• hibernate-entitymanager-x.x.x.Final.jar
• javax.persistence-api-x.x.x.jar
• log4j.jar (for logging)
• slf4j-api.jar and slf4j-simple.jar for logging if neededA Maven Web Application is a project that includes not just Java classes but also supports the use of servlets, JSPs, and other web-related technologies.
Since you want to develop a web-based application (likely with servlets for managing employee data and a database backend with Hibernate), a web application is the right type of project.Create a New Maven Project:-
-Open NetBeans and go to the File menu.
-Select New Project.
-In the dialog box, choose Java and then Maven.
-Choose Web Application as the project type and click Next.
-Set the Project Name and Project Location.
-Project Name: EmployeeManagementApp
-Project Location: Choose your desired directory for the project.
-Group ID: com.employee
-Artifact ID: EmployeeManagementApp
-Version: 1.0-SNAPSHOT
-Click Finish.
This creates the basic structure of your Maven web application project in NetBeans.# Project Application structure:
EmployeeManagement/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ ├── com.employee.model/
│ │ │ │ ├── Admin.java
│ │ │ │ └── Employee.java
│ │ │ ├── com.employee.dao/
│ │ │ │ ├── AdminDAO.java
│ │ │ │ └── EmployeeDAO.java
│ │ │ ├── com.employee.util/
│ │ │ │ └── HibernateUtil.java
│ │ │ └── com.employee.servlet/
│ │ │ ├── SignUpServlet.java
│ │ │ ├── LoginServlet.java
│ │ │ ├── AddEmployeeServlet.java
│ │ │ ├── EditEmployeeServlet.java
│ │ │ ├── DeleteEmployeeServlet.java
│ │ │ └── ShowEmployeesServlet.java
│ │ ├── resources/
│ │ │ └── hibernate.cfg.xml
│ │ └── webapp/
│ ├── index.jsp
│ ├── signup.jsp
│ ├── login.jsp
│ ├── welcome.jsp
│ ├── addEmployee.jsp
│ ├── editEmployee.jsp
│ ├── deleteEmployee.jsp
│ └── showEmployees.jsp
|── pom.xml