A Java application for managing employee data using an SQL database. Demonstrates basic CRUD (Create, Read, Update, Delete) operations via JDBC.
- CRUD Operations: Add, view, update, and delete employee records.
- JDBC Integration: Connects to SQL database for data manipulation.
- Factory Pattern: Creates employee objects with modular design.
- Console Interface: Basic user interaction through command line.
com.example.model:Employeeclass.com.example.dao:EmployeeRepositoryfor DB operations.com.example.service:EmployeeServicefor business logic.com.example.factory:EmployeeFactoryfor creating employees.com.example: Main class (Main) for application execution.-
com.example.util: ContainsDatabaseConnectionclass for managing database connections.
- Create Database and Table: Set up your SQL Server database and table by executing the file in util
To run the application, follow these steps:
Ensure you have Maven installed. Open a terminal or command prompt and navigate to the project root directory where the pom.xml file is located.
Run the following Maven command to build the project:
mvn clean install