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

📄 role.java

📁 本源码为教学管理信息系统
💻 JAVA
字号:
package com.wygl.xtgl.domain;import java.io.Serializable;import java.util.Calendar;import java.util.HashSet;import java.util.Set;/** * @author author</a> * @version 0.0.0001 *  * @hibernate.class *  table="XTGL_ROLE" *  */public class Role implements Serializable {		private String id;				//组ID	private String name;			//组名称	private String description;	//组描述	private Calendar timeOfCreation;				//创建时间	private Set userRoles = new HashSet();			//角色用户组合	private Set rolePrivileges = new HashSet();	//角色权限组合	/**	 * @hibernate.property	 *  column="NAME"	 *  length="25"	 */		public String getName() {		return name;	}	public void setName(String name) {		this.name = name;	}		/**	 * @hibernate.property	 *  column="DESCRIPTION"	 *  length="60"	 */		public String getDescription() {		return description;	}	public void setDescription(String description) {		this.description = description;	}		/**	 * @hibernate.property	 *  column="TIMEOFCREATION"	 * 	 */		public Calendar getTimeOfCreation() {		return timeOfCreation;	}	public void setTimeOfCreation(Calendar timeOfCreation) {		this.timeOfCreation = timeOfCreation;	}		/**	 * @hibernate.set	 *  lazy="true"	 *  inverse="true"	 *  cascade="all"	 * @hibernate.collection-key	 *  column="ROLE_ID"	 * @hibernate.collection-one-to-many	 *  class="com.oliveinfo.xxwlyx.xtgl.domain.UserRole"	 * @return Set	 */	public Set getUserRoles() {		return userRoles;	}	public void setUserRoles(Set userRoles) {		this.userRoles = userRoles;	}			/**	 * @hibernate.set	 *  lazy="true"	 *  inverse="true"	 *  cascade="all"	 * @hibernate.collection-key	 *  column="ROLE_ID"	 * @hibernate.collection-one-to-many	 *  class="com.oliveinfo.xxwlyx.xtgl.domain.RolePrivilege"	 * @return Set	 */	public Set getRolePrivileges() {		return rolePrivileges;	}	public void setRolePrivileges(Set rolePrivileges) {		this.rolePrivileges = rolePrivileges;	}			public boolean equals(Object other) {		if (other==null) return false;		if ( !(other instanceof Role) ) return false;		return ( (Role) other ).getName().equals(name);	}		public int hashCode() {		return id.hashCode();	}	/**	 * @hibernate.id	 *  generator-class="uuid.hex"	 *  column="ROLE_ID"	 *  length="36"	 */	public String getId() {		return id;	}	public void setId(String id) {		this.id = id;	}	}

⌨️ 快捷键说明

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