Class EnrollmentId
java.lang.Object
com.ericbouchut.learndev.course.entity.EnrollmentId
- All Implemented Interfaces:
Serializable
Composite primary key of
Enrollment: the (user, course) pair IS the
identity, so a student cannot enroll twice in the same course by
construction. Serializable and value-equal as the JPA spec requires for
embedded ids.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnrollmentId
public EnrollmentId()
-