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

📄 module.java

📁 采用比较流行的Struts2+spring+hibernate框架
💻 JAVA
字号:
package com.oa.model;

import java.util.Set;
/**
 * 
 * @author zudajun225
 * @hibernate.class table="t_module"
 */
public class Module {
	/**
	 * @hibernate.id
	 * 		generator-class="native"
	 */
	private int id;
	/**
	 * 模块名称
	 * @hibernate.property
	 * 			not-null="true"
	 * 			unique="true"
	 */
	private String name;
	/**
	 * 模块编号
	 * @hibernate.property
	 * 			not-null="true"
	 * 			unique="true"
	 */
	private String sn;
	/**
	 * 模块入口地址
	 * @hibernate.property
	 */
	private String url;
	/**
	 * 模块排序号
	 * @hibernate.property order-by="orderNum"
	 */
	private int orderNum;
	/**
	 * 父模块
	 * @hibernate.many-to-one
	 * 			not-found="ignore" column="parentId"
	 */
	private Module parent;
	/**
	 * 子模块
	 * @hibernate.set inverse="true" lazy="extra"
	 * @hibernate.key column="parentId"
	 * @hibernate.one-to-many class="com.oa.model.Module"
	 */
	private Set<Module> children;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public Module getParent() {
		return parent;
	}

	public void setParent(Module parent) {
		this.parent = parent;
	}

	public Set<Module> getChildren() {
		return children;
	}

	public void setChildren(Set<Module> children) {
		this.children = children;
	}
	
}

⌨️ 快捷键说明

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