Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import javax.persistence.*;
@Table(name = "student_courses")
public class StudentCourseEnrollment implements Serializable
@JoinColumn(name = "course_id", referencedColumnName = "id")
private Course course;
@JoinColumn(name = "student_id", referencedColumnName = "id")
private Student student;
@JoinColumn(name = "from_date")
private String fromDate;
@JoinColumn(name = "to_date")
private String toDate;
//TODO add getters and setters for all properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment