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

📄 role.java

📁 网上考试系统
💻 JAVA
字号:
package cn.hxex.exam.model;

import java.util.Set;

/**
 * The POJO about role
 * 
 * @hibernate.class table="ROLES"
 * 
 * @author galaxy
 * 
 */
public class Role extends Base
{
	/**
	 * Generated serialVersionUID
	 */
	private static final long serialVersionUID = -9029926683362698688L;

	/**
	 * @hibernate.property column="NAME"
	 */
	private String name;

	/**
	 * @hibernate.property column="TITLE"
	 */
	private String title;

	/**
	 * @return Returns the name.
	 */
	public String getName()
	{
		return name;
	}

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

	/**
	 * @return Returns the title.
	 */
	public String getTitle()
	{
		return title;
	}

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

	/**
	 * @hibernate.set table="ROLE_FUNCTION" inverse="true" lazy="false"
	 * @hibernate.key column="ROLE_ID"
	 * @hibernate.many-to-many column="FUNCTION_ID"
	 *                         class="cn.hxex.exam.model.Function"
	 */
	private Set<Function> functions;

	/**
	 * @return Returns the functions.
	 */
	public Set<Function> getFunctions()
	{
		return functions;
	}

	/**
	 * @param functions
	 *            The functions to set.
	 */
	public void setFunctions(Set<Function> functions)
	{
		this.functions = functions;
	}
}

⌨️ 快捷键说明

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