π Purpose:
πΉ Built a Console-based Employee CRUD using JDBC with MySQL
π Code Flow:
πΉ Packages Division
β com.app.model β Employee class (represents a row in DB).
πΉ Encapsulates employee data.
πΉ toString() helps print employee nicely.
β com.app.util β DBUtil (JDBC connection helper).
πΉ Encapsulates employee data.
πΉ toString() helps print employee nicely.
β com.app.dao β EmployeeDAO (CRUD operations).
πΉ addEmployee() β Insert new employee.
πΉ getAllEmployees() β Fetch all employees.
πΉ updateEmployeeSalary() β Modify salary by ID.
πΉ deleteEmployee() β Remove employee.
πΉ Uses PreparedStatement (prevents SQL injection).
β com.app.main β Main class with menu-driven app.
πΉ Provides a simple menu-driven console app.
πΉ Calls DAO methods for CRUD operations.
πΉ Uses try-catch for DB exceptions.
π References :-
πΉ I used ChatGPT to refine the grammar and structure of the key points explaining my code .
πΉ For Code Review and for exception came in the application I Used ChatGpt.
πΉ Additionally, I referred to GeeksforGeeks [https://www.geeksforgeeks.org] for conceptual guidance and coding references to ensure clarity and correctness in my implementation.