FileDocCategorySizeDatePackage
Enrolment.javaAPI DocHibernate 3.2.51396Tue May 31 15:24:42 BST 2005org.hibernate.test.criteria

Enrolment

public class Enrolment extends Object implements Serializable
author
Gavin King

Fields Summary
private Student
student
private Course
course
private long
studentNumber
private String
courseCode
private short
year
private short
semester
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object other)

		if ( !(other instanceof Enrolment) ) return false;
		Enrolment that = (Enrolment) other;
		return studentNumber==that.studentNumber &&
			courseCode.equals(that.courseCode);
	
public CoursegetCourse()

		return course;
	
public java.lang.StringgetCourseCode()

		return courseCode;
	
public shortgetSemester()

		return semester;
	
public StudentgetStudent()

		return student;
	
public longgetStudentNumber()

		return studentNumber;
	
public shortgetYear()

		return year;
	
public inthashCode()

		return courseCode.hashCode();
	
public voidsetCourse(Course course)

		this.course = course;
	
public voidsetCourseCode(java.lang.String courseId)

		this.courseCode = courseId;
	
public voidsetSemester(short semester)

		this.semester = semester;
	
public voidsetStudent(Student student)

		this.student = student;
	
public voidsetStudentNumber(long studentId)

		this.studentNumber = studentId;
	
public voidsetYear(short year)

		this.year = year;