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

📄 node.java

📁 介绍了hibernate的入门有一些基本常用的事例
💻 JAVA
字号:
//$Id: Node.java,v 1.3 2005/02/12 07:27:30 steveebersole Exp $package org.hibernate.test.ops;import java.util.HashSet;import java.util.Set;/** * @author Gavin King */public class Node {	private String name;	private Node parent;	private Set children = new HashSet();	private String description;		public Node() {}		public Node(String name) {		this.name = name;	}		public Set getChildren() {		return children;	}	public void setChildren(Set children) {		this.children = children;	}	public String getName() {		return name;	}	public void setName(String name) {		this.name = name;	}	public Node getParent() {		return parent;	}	public void setParent(Node parent) {		this.parent = parent;	}		public Node addChild(Node child) {		children.add(child);		child.setParent(this);		return this;	}	public String getDescription() {		return description;	}	public void setDescription(String description) {		this.description = description;	}}

⌨️ 快捷键说明

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