package com.lxit.entity;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
public class Grade
implements Serializable{
public Grade() {
}
public Grade(String gname) {
this.gname = gname;
}
//在一方添加多方的集合
public Set<Student> students =
new HashSet<Student>();
private int gid;
private String gname;
public int getGid() {
return gid;
}
public void setGid(
int gid) {
this.gid = gid;
}
public String getGname() {
return gname;
}
public void setGname(String gname) {
this.gname = gname;
}
public Set<Student> getStudents() {
return students;
}
public void setStudents(Set<Student> students) {
this.students = students;
}
}