Classes.java
1 package cn.itcast.hiberate.sh.domain; 2 3 import java.io.Serializable; 4 import java.util.Set; 5 6 public class Classes implements Serializable{ 7 private Long cid; 8 private String cname; 9 private String description; 10 11 public Classes(){} 12 13 public Classes(String cname,String description){ 14 this.cname = cname; 15 this.description = description; 16 } 17 18 public Long getCid() { 19 return cid; 20 } 21 22 public void setCid(Long cid) { 23 this.cid = cid; 24 } 25 26 public String getCname() { 27 return cname; 28 } 29 30 public void setCname(String cname) { 31 this.cname = cname; 32 } 33 34 public String getDescription() { 35 return description; 36 } 37 38 public void setDescription(String description) { 39 this.description = description; 40 } 41 42 public Set<Student> getStudents() { 43 return students; 44 } 45 46 public void setStudents(Set<Student> students) { 47 this.students = students; 48 } 49 50 private Set students; 51 }