KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > criteria > Student


1 //$Id: Student.java,v 1.3 2005/02/12 07:27:21 steveebersole Exp $
2
package org.hibernate.test.criteria;
3
4 import java.util.HashSet JavaDoc;
5 import java.util.Set JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Student {
11     private long studentNumber;
12     private String JavaDoc name;
13     private Set JavaDoc enrolments = new HashSet JavaDoc();
14     public Set JavaDoc getEnrolments() {
15         return enrolments;
16     }
17     public void setEnrolments(Set JavaDoc employments) {
18         this.enrolments = employments;
19     }
20     public long getStudentNumber() {
21         return studentNumber;
22     }
23     public void setStudentNumber(long studentNumber) {
24         this.studentNumber = studentNumber;
25     }
26     public String JavaDoc getName() {
27         return name;
28     }
29     public void setName(String JavaDoc name) {
30         this.name = name;
31     }
32 }
33
Popular Tags