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

📄 model.java

📁 本源码为教学管理信息系统
💻 JAVA
字号:
package com.wygl.xtgl.domain;import java.io.Serializable;import java.util.HashSet;import java.util.Set;/** * @author author</a> * @version 0.0.0001 *  * @hibernate.class *  table="XTGL_MODEL" *  */public class Model implements Serializable {		private String    modelId;              		 //功能ID	private String    name;           		 //功能名称	private Set       privileges = new HashSet();             //权限列表            			/**	 * @hibernate.id	 *  generator-class="uuid.hex"	 *  column="MODEL_ID"	 *  length="36"	 * @return Returns the modelId.	 */	public String getModelId() {		return modelId;	}	public void setModelId(String modelId) {		this.modelId = modelId;	}	/**	 * @hibernate.property	 *  column="NAME"	 *  length="25"	 */		public String getName() {		return name;	}	public void setName(String name) {		this.name = name;	}		/**	 * @hibernate.set	 *  lazy="false"	 *  inverse="true"	 *  cascade="all"	 *  order-by="PRIVILEGE_ID"	 * @hibernate.collection-key	 *  column="MODEL_ID"	 * @hibernate.collection-one-to-many	 *  class="com.oliveinfo.xxwlyx.xtgl.domain.Privilege"	 * @return Set	 *	 */	public Set getPrivileges() {		return privileges;	}	public void setPrivileges(Set privileges) {		this.privileges = privileges;	}		public int hashCode() {		return modelId.hashCode();	}			public boolean equals(Object other) {		if (other==null) return false;		if ( !(other instanceof Model) ) return false;		return ( (Model) other ).getModelId().equals(modelId);	}}

⌨️ 快捷键说明

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