⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classes.java

📁 asp制作的在线考试系统
💻 JAVA
字号:
package cn.hxex.exam.model;

import java.util.Set;

/**
 * The POJO about role
 * 
 * @hibernate.class
 *  table="class"
 * 
 * @hibernate.query
 *  name="getTeacherNotInClasses"
 *  query="from Classes where id not in ( select t.classes.id from Teacher t where t.id=:teacherid )"
 *  
 * @struts.form
 *  name="classesForm"
 *  extends="cn.hxex.exam.form.BaseForm"
 *  
 * @author galaxy
 *
 */
public class Classes extends Base 
{

	/**
	 * The Generated serial Version UID
	 */
	private static final long serialVersionUID = 3662683386669296609L;

	/**
	 * @hibernate.property
	 *  column="TITLE"
	 */
	private String title;
	
	/**
	 * @hibernate.set
	 *  table="TEACHER_CLASS"
	 *  lazy="true"
	 *  cascade="all"
	 * @hibernate.key
	 *  column="CLASS_ID"
	 * @hibernate.many-to-many
	 *  class="cn.hxex.exam.model.Teacher"
	 *  column="TEACHER_ID"
	 */
	private Set<Teacher> teachers;
	
	/**
	 * @hibernate.set
	 *  inverse="true"
	 * @hibernate.key
	 *  column="CLASS_ID"
	 * @hibernate.one-to-many
	 *  class="cn.hxex.exam.model.Student"
	 */
	private Set<Student> students;

	/**
	 * Get the class name
	 * 
	 * @struts.form-field
	 *  form-name="classesForm"
	 *  
	 * @struts.validator
	 *  type="required"
	 * 
	 * @return Returns the title.
	 */
	public String getTitle() 
	{
		return title;
	}

	/**
	 * @param title The title to set.
	 */
	public void setTitle(String title) 
	{
		this.title = title;
	}

	/**
	 * @return Returns the teachers.
	 */
	public Set<Teacher> getTeachers() 
	{
		return teachers;
	}

	/**
	 * @param teachers The teachers to set.
	 */
	public void setTeachers(Set<Teacher> teachers) 
	{
		this.teachers = teachers;
	}

	/**
	 * @return Returns the students.
	 */
	public Set<Student> getStudents() 
	{
		return students;
	}

	/**
	 * @param students The students to set.
	 */
	public void setStudents(Set<Student> students) 
	{
		this.students = students;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -