User Story
As a developer
I want to implement the Enrollment entity and DAO layer
So that the application can manage student course enrollments
Description
Implement Enrollment POJO and DAO layer to handle the many-to-many relationship between users and courses.
Tasks
Enrollment Model (POJO)
Enrollment DAO Interface
Enrollment DAO Implementation
Testing
Acceptance Criteria
User Story
As a developer
I want to implement the Enrollment entity and DAO layer
So that the application can manage student course enrollments
Description
Implement Enrollment POJO and DAO layer to handle the many-to-many relationship between users and courses.
Tasks
Enrollment Model (POJO)
Enrollment.javainmodel/packageenrollmentstable schematoString()Enrollment DAO Interface
EnrollmentDAO.javainterface indao/packageEnrollment DAO Implementation
EnrollmentDAOImpl.javaindao/packageenroll(int userId, int courseId)- create enrollmentunenroll(int userId, int courseId)- remove enrollmentisEnrolled(int userId, int courseId)- check if enrolledfindByUser(int userId)- user's enrollmentsfindByCourse(int courseId)- course's enrollmentscountByCourse(int courseId)- enrollment countTesting
enroll()creates enrollment recordisEnrolled()returns correct statuscountByCourse()returns correct countAcceptance Criteria
Enrollment.javaincludes all fields from schemaEnrollmentDAOimplements all operations